summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/implicit-builtin-decl.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/implicit-builtin-decl.c')
-rw-r--r--clang/test/Sema/implicit-builtin-decl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/test/Sema/implicit-builtin-decl.c b/clang/test/Sema/implicit-builtin-decl.c
index 9e01de1c859..d80414d5fea 100644
--- a/clang/test/Sema/implicit-builtin-decl.c
+++ b/clang/test/Sema/implicit-builtin-decl.c
@@ -22,7 +22,7 @@ void h() {
}
void f2() {
- fprintf(0, "foo"); // expected-error{{implicit declaration of 'fprintf' requires inclusion of the header <stdio.h>}} \
+ fprintf(0, "foo"); // expected-warning{{declaration of built-in function 'fprintf' requires inclusion of the header <stdio.h>}} \
expected-warning {{implicit declaration of function 'fprintf' is invalid in C99}}
}
@@ -52,3 +52,6 @@ main(int argc, char *argv[])
}
void snprintf() { }
+
+// PR8316
+void longjmp(); // expected-warning{{declaration of built-in function 'longjmp' requires inclusion of the header <setjmp.h>}}
OpenPOWER on IntegriCloud