summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Parser/expressions.c6
-rw-r--r--clang/test/SemaCXX/types_compatible_p.cpp3
-rw-r--r--clang/test/SemaObjC/error-missing-getter.m3
3 files changed, 10 insertions, 2 deletions
diff --git a/clang/test/Parser/expressions.c b/clang/test/Parser/expressions.c
index 95d6fb354f3..64b44470f7e 100644
--- a/clang/test/Parser/expressions.c
+++ b/clang/test/Parser/expressions.c
@@ -67,3 +67,9 @@ void func_16992 () {
int x3 = __alignof int; // expected-error {{expected parentheses around type name in __alignof expression}}
int x4 = _Alignof int; // expected-error {{expected parentheses around type name in _Alignof expression}}
}
+
+void callee(double, double);
+void test8() {
+ callee(foobar, // expected-error {{use of undeclared identifier 'foobar'}}
+ fizbin); // expected-error {{use of undeclared identifier 'fizbin'}}
+}
diff --git a/clang/test/SemaCXX/types_compatible_p.cpp b/clang/test/SemaCXX/types_compatible_p.cpp
index ebff53f7c00..29e06405ade 100644
--- a/clang/test/SemaCXX/types_compatible_p.cpp
+++ b/clang/test/SemaCXX/types_compatible_p.cpp
@@ -4,5 +4,6 @@
// Test that GNU C extension __builtin_types_compatible_p() is not available in C++ mode.
int f() {
- return __builtin_types_compatible_p(int, const int); // expected-error{{}}
+ return __builtin_types_compatible_p(int, const int); // expected-error{{expected '(' for function-style cast or type construction}} \
+ // expected-error{{expected expression}}
}
diff --git a/clang/test/SemaObjC/error-missing-getter.m b/clang/test/SemaObjC/error-missing-getter.m
index 3dce858837a..13dc8e5bb13 100644
--- a/clang/test/SemaObjC/error-missing-getter.m
+++ b/clang/test/SemaObjC/error-missing-getter.m
@@ -27,7 +27,8 @@ int func2 (int arg) {
if (TestClass.setterOnly) { // expected-error {{no getter method for read from property}}
TestClass.setterOnly = 1;
}
- func(TestClass.setterOnly + 1, x); // expected-error {{no getter method for read from property}}
+ func(TestClass.setterOnly + 1, x); // expected-error {{no getter method for read from property}} \
+ // expected-error {{use of undeclared identifier 'x'}}
int i = TestClass.setterOnly + 1; // expected-error {{no getter method for read from property}}
return TestClass.setterOnly + 1; // expected-error {{no getter method for read from property}}
}
OpenPOWER on IntegriCloud