summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-09 13:12:24 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-09 13:12:24 +0000
commit116613c4b46dde0eb96592d3e120f874adbb4906 (patch)
treecc95728965e15e64cfaa491ffcc14f67fda43962 /gcc/testsuite/gcc.dg
parent8b0d7d13be6724520f4c068b164b44b31dfcbd09 (diff)
downloadgcc-116613c4b46dde0eb96592d3e120f874adbb4906.tar.gz
2010-05-09 Richard Guenther <rguenther@suse.de>
* gcc.dg/ipa/ipa-pta-11.c: Make p and q referenced. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159199 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r--gcc/testsuite/gcc.dg/ipa/ipa-pta-11.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/ipa/ipa-pta-11.c b/gcc/testsuite/gcc.dg/ipa/ipa-pta-11.c
index 947ab816fc9..dadb166767c 100644
--- a/gcc/testsuite/gcc.dg/ipa/ipa-pta-11.c
+++ b/gcc/testsuite/gcc.dg/ipa/ipa-pta-11.c
@@ -21,6 +21,9 @@ int l;
int *s = &l;
/* { dg-final { scan-ipa-dump "s = { ESCAPED NONLOCAL l }" "pta" } } */
+/* Make p and q referenced so they do not get optimized out. */
+int foo() { return &p < &q; }
+
int main()
{
return 0;