summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-06-16 13:16:20 +0000
committerChris Lattner <sabre@nondot.org>2003-06-16 13:16:20 +0000
commit58184f5f0230d15397a598c378ad10833df46307 (patch)
tree400140de02b8e5aa83b018943153593ff02c7262 /test
parent905e7344b694f5b684ec6f8a6a4eca3e34bc2080 (diff)
downloadllvm-58184f5f0230d15397a598c378ad10833df46307.tar.gz
llvm-58184f5f0230d15397a598c378ad10833df46307.tar.bz2
llvm-58184f5f0230d15397a598c378ad10833df46307.tar.xz
New testcase identified by joel
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6708 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/C++Frontend/2003-06-16-VolatileError.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/C++Frontend/2003-06-16-VolatileError.c b/test/C++Frontend/2003-06-16-VolatileError.c
new file mode 100644
index 0000000000..127e540646
--- /dev/null
+++ b/test/C++Frontend/2003-06-16-VolatileError.c
@@ -0,0 +1,5 @@
+/* This crashes the CFE. */
+extern int volatile test;
+int volatile test = 0;
+
+int main() { return 0; }