OSDN Git Service

PR c++/20646
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / other / mult-stor1.C
diff --git a/gcc/testsuite/g++.dg/other/mult-stor1.C b/gcc/testsuite/g++.dg/other/mult-stor1.C
new file mode 100644 (file)
index 0000000..439c0cb
--- /dev/null
@@ -0,0 +1,8 @@
+// PR c++/20646
+// Origin: Dan Rosen <dan.rosen@gmail.com>
+// { dg-do compile }
+
+struct A
+{
+  extern static int i;  // { dg-error "multiple storage classes" }
+};