repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ubsan
/
pr85029.C
blob
836ce69cc15d4fac22265d4064e777ab04199ba3
1
// PR sanitizer/85029
2
// { dg-do compile }
3
// { dg-skip-if "" { *-*-* } { "-flto -fno-fat-lto-objects" } }
4
// { dg-options "-fsanitize=undefined -Wno-register" }
5
6
struct B {
7
virtual B bar ();
8
int e;
9
} register a; // { dg-error "register name not specified for 'a'" }
10
11
int
12
foo (...)
13
{
14
return foo (a);
15
}