[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / g++.dg / eh / div.C
blob14d7536ce19070af0a599e6fe1439981e6d48525
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)
12   return 0xffffU/c;