summaryrefslogtreecommitdiff
path: root/clang/test/SemaObjC/id_builtin.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaObjC/id_builtin.m')
-rw-r--r--clang/test/SemaObjC/id_builtin.m10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/id_builtin.m b/clang/test/SemaObjC/id_builtin.m
new file mode 100644
index 0000000..a1431d6
--- /dev/null
+++ b/clang/test/SemaObjC/id_builtin.m
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 %s -fsyntax-only -verify
+
+// id is now builtin. There should be no errors.
+id obj;
+
+@interface Foo
+
+- defaultToId;
+
+@end