diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/lto/ipacp_1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/lto/ipacp_1.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/lto/ipacp_1.c b/gcc/testsuite/gcc.dg/lto/ipacp_1.c new file mode 100644 index 000000000..69c1ec6e9 --- /dev/null +++ b/gcc/testsuite/gcc.dg/lto/ipacp_1.c @@ -0,0 +1,12 @@ +void abort (void); +extern int a; + +__attribute__ ((noinline)) +void +clone_me (int *ptr) +{ + if (ptr != &a) + abort (); + if (!__builtin_constant_p (ptr != &a)) + abort (); +} |