Import Cobalt 19.master.0.203780 Includes the following patches: https://cobalt-review.googlesource.com/c/cobalt/+/5210 by errong.leng@samsung.com https://cobalt-review.googlesource.com/c/cobalt/+/5270 by linus.wang@samsung.com
diff --git a/src/third_party/llvm-project/clang/test/Parser/check-objc2-syntax-1.m b/src/third_party/llvm-project/clang/test/Parser/check-objc2-syntax-1.m new file mode 100644 index 0000000..364f826 --- /dev/null +++ b/src/third_party/llvm-project/clang/test/Parser/check-objc2-syntax-1.m
@@ -0,0 +1,13 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s + +// rdar://15505492 +@import Foundation; // expected-error {{use of '@import' when modules are disabled}} + +@interface Subclass ++ (int)magicNumber; +@end + +int main (void) { + return Subclass.magicNumber; +} +