1 /* { dg-additional-sources "target-same-name-1-a.c target-same-name-1-b.c" } */
2 /* PR middle-end/104285 */
4 /* Both files create the same static symbol, which caused issues
9 int one_get_inc2_local_link ();
10 int two_get_inc4_local_link ();
11 int one_get_inc3_link_a ();
12 int two_get_inc5_link_a ();
22 if (one_get_inc2_local_link () != 42)
24 if (two_get_inc4_local_link () != 55)
26 if (one_get_inc2_local_link () != 42+2)
28 if (two_get_inc4_local_link () != 55+4)
31 if (one_get_inc3_link_a () != 123)
33 if (two_get_inc5_link_a () != 123+3)
36 /* FIXME: The last call did not increment the global var. */
37 /* PR middle-end/105015 */
39 if (one_get_inc3_link_a () != 123+3+5)
41 if (two_get_inc5_link_a () != 123+3+5+3)