OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Implement DR 757: It's OK for a decl to use a type without linkage
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
anon9.C
diff --git
a/gcc/testsuite/g++.old-deja/g++.other/anon9.C
b/gcc/testsuite/g++.old-deja/g++.other/anon9.C
index
a364db8
..
f4b1923
100644
(file)
--- a/
gcc/testsuite/g++.old-deja/g++.other/anon9.C
+++ b/
gcc/testsuite/g++.old-deja/g++.other/anon9.C
@@
-4,3
+4,8
@@
typedef const struct { int i; } T; // { dg-error "" } referenced below
void f (T* t); // { dg-error "" } uses unnamed type
+
+int main()
+{
+ f(0);
+}