c++: prev declared hidden tmpl friend inst [PR112288]
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / ipa-bit-cp-2.c
blob3a2c9c8adb36ce4c87bb791ecf3b6302e832d7ae
1 /* { dg-do run } */
2 /* { dg-options "-fpermissive -O2 -w -fipa-bit-cp" } */
3 static int
4 __attribute__ ((noinline))
5 test (int __attribute__((unused)) b, int a)
7 if (!(a&2))
8 link_error ();
11 extern int __attribute__((const)) getint ();
13 main()
15 test (getint(), 2);
16 test (getint(), 3);
17 test (getint(), 6);
18 return 0;