diff options
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/PCH/objc_exprs.h | 5 | ||||
-rw-r--r-- | clang/test/PCH/objc_exprs.m | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/PCH/objc_exprs.h b/clang/test/PCH/objc_exprs.h new file mode 100644 index 00000000000..136a34cb84c --- /dev/null +++ b/clang/test/PCH/objc_exprs.h @@ -0,0 +1,5 @@ + +inline const char *foo() { + return @encode(int); +} + diff --git a/clang/test/PCH/objc_exprs.m b/clang/test/PCH/objc_exprs.m new file mode 100644 index 00000000000..7a373217b6f --- /dev/null +++ b/clang/test/PCH/objc_exprs.m @@ -0,0 +1,7 @@ +// Test this without pch. +// RUN: clang-cc -fblocks -include %S/objc_exprs.h -fsyntax-only -verify %s && + +// Test with pch. +// RUN: clang-cc -x objective-c-header -emit-pch -fblocks -o %t %S/objc_exprs.h && +// RUN: clang-cc -fblocks -include-pch %t -fsyntax-only -verify %s + |