aboutsummaryrefslogtreecommitdiff
path: root/test/SemaObjC/const-id.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjC/const-id.m')
-rw-r--r--test/SemaObjC/const-id.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/SemaObjC/const-id.m b/test/SemaObjC/const-id.m
new file mode 100644
index 0000000000..9087e4ce7d
--- /dev/null
+++ b/test/SemaObjC/const-id.m
@@ -0,0 +1,8 @@
+// RUN: clang %s -verify -fsyntax-only
+
+int main() {
+ const id foo;
+ [foo bar]; // expected-warning {{method '-bar' not found (return type defaults to 'id')}}
+ return 0;
+}
+