repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
lto
/
odr-1_1.C
blob
ef2f55a69aaa1e4cb976325a9d81783e63961b53
1
namespace {
2
struct b;
3
}
4
struct a {
5
struct b *ptr;
6
};
7
void test(struct a *); // { dg-lto-warning "6: 'test' violates the C\\+\\+ One Definition Rule" }
8
int
9
main(void)
10
{
11
test (0);
12
}