This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Make p and q referenced in gcc.dg/ipa/ipa-pta-11.c


Committed.

2010-05-09  Richard Guenther  <rguenther@suse.de>

	* gcc.dg/ipa/ipa-pta-11.c: Make p and q referenced.

Index: gcc/testsuite/gcc.dg/ipa/ipa-pta-11.c
===================================================================
*** gcc/testsuite/gcc.dg/ipa/ipa-pta-11.c	(revision 159196)
--- gcc/testsuite/gcc.dg/ipa/ipa-pta-11.c	(working copy)
*************** int l;
*** 21,26 ****
--- 21,29 ----
  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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]