i386: Add -mveclibabi=aocl [PR56504]
[official-gcc.git] / gcc / testsuite / gcc.dg / weak / weak-9.c
blobabbd0201c4642f9db6c0b29bf05aae0e894b26ab
1 /* { dg-do compile } */
2 /* { dg-require-weak "" } */
3 /* { dg-require-alias "" } */
4 /* { dg-options "-fno-common" } */
6 /* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?f1" } } */
7 /* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?f2" } } */
8 /* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?f3" } } */
9 /* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?f4" } } */
11 void notf1() { }
12 void notf2() { }
13 void notf3() { }
14 void notf4() { }
16 void f1() __attribute__((weak, alias("notf1")));
17 void f2() __attribute__((alias("notf2"), weak));
19 #pragma weak f3=notf3
20 void f3();
22 void f4();
23 #pragma weak f4=notf4