summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/extension.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Parser/extension.c')
-rw-r--r--clang/test/Parser/extension.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/clang/test/Parser/extension.c b/clang/test/Parser/extension.c
index 24f1ac5181a..519dc053c82 100644
--- a/clang/test/Parser/extension.c
+++ b/clang/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}} */
}
OpenPOWER on IntegriCloud