aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.1/gcc/testsuite/g++.dg/ext/attribute-test-1.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.8.1/gcc/testsuite/g++.dg/ext/attribute-test-1.C')
-rw-r--r--gcc-4.8.1/gcc/testsuite/g++.dg/ext/attribute-test-1.C38
1 files changed, 0 insertions, 38 deletions
diff --git a/gcc-4.8.1/gcc/testsuite/g++.dg/ext/attribute-test-1.C b/gcc-4.8.1/gcc/testsuite/g++.dg/ext/attribute-test-1.C
deleted file mode 100644
index 7df68930f..000000000
--- a/gcc-4.8.1/gcc/testsuite/g++.dg/ext/attribute-test-1.C
+++ /dev/null
@@ -1,38 +0,0 @@
-// { dg-do run }
-// { dg-options "" }
-// PR c++/13989
-
-extern "C" void abort();
-
-#define vector __attribute__((vector_size(16)))
-
-struct Constants {
- inline vector unsigned int deadbeef(void) const {
- return (vector unsigned int){0xdeadbeef, 0xabababab, 0x55555555, 0x12345678};
- };
-};
-
-inline vector unsigned int const_deadbeef(Constants &C)
-{
- return C.deadbeef();
-}
-
-union u {
- unsigned int f[4];
- vector unsigned int v;
-} data;
-
-int main()
-{
- Constants c;
- data.v = const_deadbeef(c);
-
- if (data.f[0] != 0xdeadbeef || data.f[1] != 0xabababab
- || data.f[2] != 0x55555555 || data.f[3] != 0x12345678)
- abort();
-
- return 0;
-}
-
-/* Ignore a warning that is irrelevant to the purpose of this test. */
-/* { dg-prune-output ".*GCC vector returned by reference.*" } */