}
assert(Literal.isIntegerLiteral() && "Unknown ppnumber");
+ // long long is a C99 feature.
+ if (!PP.getLangOptions().C99 && !PP.getLangOptions().CPlusPlus0x
+ && Literal.isLongLong)
+ PP.Diag(PeekTok, diag::ext_longlong);
+
// Parse the integer literal into Result.
if (Literal.GetIntegerValue(Result)) {
// Overflow parsing integer literal.
} else {
QualType t;
+ // long long is a C99 feature.
+ if (!getLangOptions().C99 && !getLangOptions().CPlusPlus0x &&
+ Literal.isLongLong)
+ Diag(Tok.getLocation(), diag::ext_longlong);
+
// Get the value in the widest-possible width.
llvm::APInt ResultVal(Context.Target.getIntMaxTWidth(Tok.getLocation()), 0);
void test3(int i) {
int A[i]; /* expected-warning {{variable length array}} */
}
+
+int test4 = 0LL; /* expected-warning {{long long}} */
+
+#if 1LL /* expected-warning {{long long}} */
+#endif