We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 161981f commit a811e8bCopy full SHA for a811e8b
clang/test/Modules/objc-categories.cpp
@@ -0,0 +1,14 @@
1
+// RUN: rm -rf %t.pcm
2
+
3
+// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -x c++ -std=c++11 -emit-module -fmodules -fmodule-name=cxx_library %S/Inputs/module.modulemap -o %t.pcm
4
+// RUN: llvm-bcanalyzer %t.pcm | FileCheck %s --check-prefix=CXX_LIBRARY
5
+// CXX_LIBRARY: AST_BLOCK
6
+// CXX_LIBRARY-NOT: OBJC_CATEGORIES
7
+// CXX_LIBRARY-NOT: OBJC_CATEGORIES_MAP
8
9
+// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -x objective-c -emit-module -fmodules -fmodule-name=category_top %S/Inputs/module.modulemap -o %t.pcm
10
+// RUN: llvm-bcanalyzer %t.pcm | FileCheck %s --check-prefix=CATEGORY_TOP
11
+// CATEGORY_TOP: AST_BLOCK
12
+// CATEGORY_TOP: OBJC_CATEGORIES
13
+// CATEGORY_TOP: OBJC_CATEGORIES_MAP
14
0 commit comments