Fix all tests that fail with -sanitize=return.
[official-gcc.git] / gcc / testsuite / g++.dg / tree-ssa / pr13954.C
blobd5934e91cc5715fb92629709b3bf8ccb310d0fab
1 /* { dg-do compile } */ 
2 /* { dg-options "-O1 -fdump-tree-optimized" } */
4 void link_error (void);
6 class base
8 };
10 class teststruct: public base
12 public:
13   double d;
14   char f1;
17 void
18 copystruct1 (teststruct param)
20   teststruct local;
21   param.f1 = 0;
22   local = param;
23   if (local.f1 != 0)
24     link_error ();
27 /* There should be no reference to link_error. */
28 /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized"} } */