summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/c89.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/c89.c')
-rw-r--r--clang/test/Sema/c89.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Sema/c89.c b/clang/test/Sema/c89.c
index b746d383f30..c9e81f1c41c 100644
--- a/clang/test/Sema/c89.c
+++ b/clang/test/Sema/c89.c
@@ -111,6 +111,8 @@ const array_of_pointer_to_CI mine3;
void main() {} /* expected-error {{'main' must return 'int'}} */
+const int main() {} /* expected-error {{'main' must return 'int'}} */
+
long long ll1 = /* expected-warning {{'long long' is an extension when C99 mode is not enabled}} */
-42LL; /* expected-warning {{'long long' is an extension when C99 mode is not enabled}} */
unsigned long long ull1 = /* expected-warning {{'long long' is an extension when C99 mode is not enabled}} */
OpenPOWER on IntegriCloud