blob: 836ce69cc15d4fac22265d4064e777ab04199ba3 [file] [log] [blame]
// PR sanitizer/85029
// { dg-do compile }
// { dg-skip-if "" { *-*-* } { "-flto -fno-fat-lto-objects" } }
// { dg-options "-fsanitize=undefined -Wno-register" }
struct B {
virtual B bar ();
int e;
} register a; // { dg-error "register name not specified for 'a'" }
int
foo (...)
{
return foo (a);
}