PR tree-optimization/113673: Avoid load merging when potentially trapping.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / inline5.C
blobb538cdba9cf13f8e605627dedb1fe582fea62ef1
1 // { dg-do assemble  }
2 // { dg-options "-O2" }
3 // Origin: Matt Austern <austern@isolde.engr.sgi.com>
5 class X;
7 extern X* tab1;
9 struct Y {
10   explicit Y(int);
13 void* x ();
15 Y k (void *);
17 inline void f() { k (x ()); }
19 inline void* x () 
21   return 0;
24 static void g() {
25   f();
28 static void h() {
29   f();