aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorNathanael Nerode <neroden@gcc.gnu.org>2003-01-03 16:07:26 +0000
committerNathanael Nerode <neroden@gcc.gnu.org>2003-01-03 16:07:26 +0000
commit1ff11883e42395d3141ac58a4d2ca8cdac61c96d (patch)
treef77836c0b4536e15778e2b2f5ff16de1e760512a /gcc/testsuite
parent96dafad6fcf7cc337600bad2a303b2e27513ffd4 (diff)
downloadgcc-1ff11883e42395d3141ac58a4d2ca8cdac61c96d.zip
gcc-1ff11883e42395d3141ac58a4d2ca8cdac61c96d.tar.gz
gcc-1ff11883e42395d3141ac58a4d2ca8cdac61c96d.tar.bz2
* g++.dg/parse/extern-C-1.C: New test.
From-SVN: r60833
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog2
-rw-r--r--gcc/testsuite/g++.dg/parse/extern-C-1.C13
2 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index d765809..7fa12a9 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,7 @@
2003-01-03 Nathanael Nerode <neroden@gcc.gnu.org>
+ * g++.dg/parse/extern-C-1.C: New test.
+
* g++.dg/parse/namespace4.C: New test.
* g++.dg/template/nested1.C: New test.
diff --git a/gcc/testsuite/g++.dg/parse/extern-C-1.C b/gcc/testsuite/g++.dg/parse/extern-C-1.C
new file mode 100644
index 0000000..60a6348
--- /dev/null
+++ b/gcc/testsuite/g++.dg/parse/extern-C-1.C
@@ -0,0 +1,13 @@
+/* PR c++/4754 */
+/* { dg-do compile } */
+// GCC 3.2 got very confused by the nested extern "C" blocks, and thought
+// there was a storage class specifier on 'int i'.
+
+extern "C"
+{
+ extern "C" struct Test
+ {
+ int i;
+ };
+}
+