summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/error14.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/other/error14.C')
-rw-r--r--gcc/testsuite/g++.dg/other/error14.C7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/other/error14.C b/gcc/testsuite/g++.dg/other/error14.C
new file mode 100644
index 000000000..b3c930188
--- /dev/null
+++ b/gcc/testsuite/g++.dg/other/error14.C
@@ -0,0 +1,7 @@
+//PR c++/26269
+
+void foo()
+{
+ i; // { dg-error "not declared in this scope" }
+ int i;
+}