summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/predefined-function.c
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2016-06-16 21:39:55 +0000
committerOlivier Goffart <ogoffart@woboq.com>2016-06-16 21:39:55 +0000
commit119dad63bc5bd5ed46d2be2556af148264f9f62f (patch)
treec429aedfd355d9a720755666ec17314a24f6c998 /clang/test/Sema/predefined-function.c
parent12b22198417c1eb83780f0905d8e466c2d774380 (diff)
downloadbcm5719-llvm-119dad63bc5bd5ed46d2be2556af148264f9f62f.tar.gz
bcm5719-llvm-119dad63bc5bd5ed46d2be2556af148264f9f62f.zip
Keep invalid functions as part of the AST
Differential Revision: http://reviews.llvm.org/D19764 llvm-svn: 272962
Diffstat (limited to 'clang/test/Sema/predefined-function.c')
-rw-r--r--clang/test/Sema/predefined-function.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/test/Sema/predefined-function.c b/clang/test/Sema/predefined-function.c
index 1c40b6e8c2c..aa7b28535bc 100644
--- a/clang/test/Sema/predefined-function.c
+++ b/clang/test/Sema/predefined-function.c
@@ -4,14 +4,13 @@ char *funk(int format);
enum Test {A=-1};
char *funk(enum Test x);
-int eli(float b); // expected-note {{previous declaration is here}} \
-// expected-note{{passing argument to parameter 'b' here}}
+int eli(float b); // expected-note {{previous declaration is here}}
int b(int c) {return 1;}
int foo();
int foo() {
int eli(int (int)); // expected-error {{conflicting types for 'eli'}}
- eli(b); // expected-error{{passing 'int (int)' to parameter of incompatible type 'float'}}
+ eli(b);
return 0;
}
OpenPOWER on IntegriCloud