PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / special / weak-2.c
blobb8133e2d7d95395fb64796f47ee7e8fe8269298b
1 /* { dg-do run } */
2 /* { dg-require-weak "" } */
3 /* { dg-additional-sources "weak-2a.c weak-2b.c" } */
5 /* NVPTX's implementation of weak is broken when a strong symbol is in
6 a later object file than the weak definition. */
7 /* { dg-skip-if "" { "nvptx-*-*" } } */
9 #include <stdlib.h>
11 extern int foo(void);
13 int main(void) {
15 if (foo())
16 exit(0);
17 else
18 abort();