2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / ubsan / pr85029.C
blob07472af16a5fd39d90c154752b1599d77dbe728d
1 // PR sanitizer/85029
2 // { dg-do compile }
3 // { dg-skip-if "" { *-*-* } { "-flto -fno-fat-lto-objects" } }
4 // { dg-options "-fsanitize=undefined" }
6 struct B {
7   virtual B bar ();
8   int e;
9 } register a;   // { dg-error "register name not specified for 'a'" }
11 int
12 foo (...)
14   return foo (a);