Debian Codegraph @

gcc/testsuite/g++.dg/eh/div.C

raw
1 // { dg-do link }
2 // { dg-options "-Os" }
3 /* PR target/28014: main references unsigned divide, and the unwinder
4 references signed divide.
5 If libgcc contains an object which defines both, and linking is done with
6 a space-optimized library that defines these functions in separate objects,
7 you end up with the function for unsigned divide defined twice. */
8 int
9 main (int c, char **argv)
10
11 {
12 return 0xffffU/c;
13 }