Debian Codegraph @

libgomp/testsuite/libgomp.c++/target-same-name-2.C

raw
1 /* { dg-additional-sources "target-same-name-2-a.C target-same-name-2-b.C" } */
2 /* PR middle-end/104285 */
3
4 /* Both files create the same symbol, which caused issues
5 in non-host lto1. */
6
7 int test_a ();
8 int test_a2 ();
9 int test_b ();
10 int test_b2 ();
11
12 int
13 main ()
14 {
15 if (test_a () != 42)
16 __builtin_abort ();
17 if (test_a2 () != 441)
18 __builtin_abort ();
19 if (test_b () != 42)
20 __builtin_abort ();
21 if (test_b2 () != 442)
22 __builtin_abort ();
23 return 0;
24 }