aboutsummaryrefslogtreecommitdiff
path: root/test/FrontendC/2007-10-30-Volatile.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/FrontendC/2007-10-30-Volatile.c')
-rw-r--r--test/FrontendC/2007-10-30-Volatile.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/FrontendC/2007-10-30-Volatile.c b/test/FrontendC/2007-10-30-Volatile.c
new file mode 100644
index 000000000000..7a75b05d5d2b
--- /dev/null
+++ b/test/FrontendC/2007-10-30-Volatile.c
@@ -0,0 +1,6 @@
+// RUN: %llvmgcc -S %s -o /dev/null -Wall -Werror
+void bork() {
+ char * volatile p;
+ volatile int cc;
+ p += cc;
+}