c++: prev declared hidden tmpl friend inst [PR112288]
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / modref-3.c
blob9a20e018ae1f3462c09e269e7b060debf7c92404
1 /* { dg-options "-O2 -fdump-ipa-modref" } */
2 /* { dg-do link } */
3 int *ptr;
4 void linker_error ();
5 int
6 main ()
8 int a;
9 __attribute__((noinline)) int test2 ()
11 ptr = 0;
12 return a;
14 a = 1;
15 test2 ();
16 if (a != 1)
17 linker_error ();
18 return 0;
20 /* { dg-final { scan-ipa-dump "Static chain flags: no_direct_clobber no_indirect_clobber no_direct_escape no_indirect_escape not_returned_directly no_indirect_read" "modref" } } */