aboutsummaryrefslogtreecommitdiff
path: root/test/Parser
diff options
context:
space:
mode:
Diffstat (limited to 'test/Parser')
-rw-r--r--test/Parser/extension.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/Parser/extension.c b/test/Parser/extension.c
index 24f1ac5181..519dc053c8 100644
--- a/test/Parser/extension.c
+++ b/test/Parser/extension.c
@@ -1,17 +1,20 @@
-// RUN: clang-cc %s -fsyntax-only
+/* RUN: clang-cc %s -fsyntax-only -pedantic -verify -std=c89
+ */
-// Top level extension marker.
+/* Top level extension marker. */
__extension__ typedef struct
{
long long int quot;
long long int rem;
-}lldiv_t;
+} lldiv_t;
-// Compound expr __extension__ marker.
+/* Decl/expr __extension__ marker. */
void bar() {
__extension__ int i;
int j;
+ __extension__ (j = 10LL);
+ __extension__ j = 10LL; /* expected-warning {{'long long' is an extension}} */
}