aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.1/gcc/testsuite/g++.dg/ext/vector3.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.8.1/gcc/testsuite/g++.dg/ext/vector3.C')
-rw-r--r--gcc-4.8.1/gcc/testsuite/g++.dg/ext/vector3.C12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc-4.8.1/gcc/testsuite/g++.dg/ext/vector3.C b/gcc-4.8.1/gcc/testsuite/g++.dg/ext/vector3.C
new file mode 100644
index 000000000..1a67cf76a
--- /dev/null
+++ b/gcc-4.8.1/gcc/testsuite/g++.dg/ext/vector3.C
@@ -0,0 +1,12 @@
+/* { dg-do compile } */
+/* { dg-options "" } */
+
+// PR c++/28302
+
+int __attribute__((vector_size(8))) x;
+
+void foo()
+{
+ ~x;
+}
+