diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/Sema/c89.c | 6 | ||||
-rw-r--r-- | test/Sema/implicit-decl.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/test/Sema/c89.c b/test/Sema/c89.c index e4cdc11be1..e11cd4e6f1 100644 --- a/test/Sema/c89.c +++ b/test/Sema/c89.c @@ -83,9 +83,9 @@ int test14() { return (&*test14)(); } int test15[5] = { [2] = 1 }; /* expected-warning {{designated initializers are a C99 feature}} */ -extern int printf(__const char *__restrict __format, ...); /* expected-note{{'printf' declared here}} */ +extern int printf(__const char *__restrict __format, ...); +/* Warn, but don't suggest typo correction. */ void test16() { - printg("Hello, world!\n"); /* expected-warning {{implicit declaration of function 'printg'}} - expected-note {{did you mean 'printf'?}} */ + printg("Hello, world!\n"); /* expected-warning {{implicit declaration of function 'printg'}} */ } diff --git a/test/Sema/implicit-decl.c b/test/Sema/implicit-decl.c index 72e42e05bb..2e1a865254 100644 --- a/test/Sema/implicit-decl.c +++ b/test/Sema/implicit-decl.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 %s -verify -fsyntax-only +// RUN: %clang_cc1 %s -verify -fsyntax-only -Werror typedef int int32_t; typedef unsigned char Boolean; @@ -10,10 +10,10 @@ void func() { const char compDesc[16 + 1]; int32_t compCount = 0; if (_CFCalendarDecomposeAbsoluteTimeV(compDesc, vector, compCount)) { // expected-note {{previous implicit declaration is here}} \ - expected-warning {{implicit declaration of function '_CFCalendarDecomposeAbsoluteTimeV' is invalid in C99}} + expected-error {{implicit declaration of function '_CFCalendarDecomposeAbsoluteTimeV' is invalid in C99}} } - printg("Hello, World!\n"); // expected-warning{{implicit declaration of function 'printg' is invalid in C99}} \ + printg("Hello, World!\n"); // expected-error{{implicit declaration of function 'printg' is invalid in C99}} \ // expected-note{{did you mean 'printf'?}} __builtin_is_les(1, 3); // expected-error{{use of unknown builtin '__builtin_is_les'}} \ |