Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / ext / weak3.C
blob360821acc48623d67d4ce1b19929787d9460a6b4
1 // PR c++/20961
2 // Test for #pragma weak and __attribute__((weak)) being used together. 
3 // { dg-do compile }
4 // { dg-require-weak "" }
5 // { dg-options "" }
7 // { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?_Z3foov" } }
9 int foo ();
10 #pragma weak foo
12 int
13 __attribute__((weak))
14 foo ()
16   return 0;