aboutsummaryrefslogtreecommitdiffstats
path: root/cparser/tests/handwritten/dubious-enum.c
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2015-10-26 13:00:45 +0100
committerBernhard Schommer <bernhardschommer@gmail.com>2015-10-26 13:00:45 +0100
commit51b059d9a5559cf06e13e82bcda3da9f1c70fad1 (patch)
treed2060251ae147a565e2d6297666effc5fe7fa7a0 /cparser/tests/handwritten/dubious-enum.c
parent94163429293cef7410320f79fc5964fc546fccef (diff)
parent52c4f2622a32a88f9470111542b547514e6b21cc (diff)
downloadcompcert-51b059d9a5559cf06e13e82bcda3da9f1c70fad1.tar.gz
compcert-51b059d9a5559cf06e13e82bcda3da9f1c70fad1.zip
Merge branch 'fpottier-clean'
Diffstat (limited to 'cparser/tests/handwritten/dubious-enum.c')
-rw-r--r--cparser/tests/handwritten/dubious-enum.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/cparser/tests/handwritten/dubious-enum.c b/cparser/tests/handwritten/dubious-enum.c
new file mode 100644
index 00000000..12ee6683
--- /dev/null
+++ b/cparser/tests/handwritten/dubious-enum.c
@@ -0,0 +1,7 @@
+int f (void)
+{
+ int x = sizeof(enum e;
+ /* Maybe a closing parenthesis is missing,
+ maybe also "enum e" could be continued with an opening brace.
+ Our message ignores the latter possibility. */
+}