repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git]
/
clang
/
test
/
Rewriter
/
objc-bool-literal-modern.mm
blob
c84ff931038140f7b6f3ed5f0e9b591e81312cdb
1
// RUN: %clang_cc1 -x objective-c++ -fms-extensions -rewrite-objc %s -o %t-rw.cpp
2
// RUN: %clang_cc1 -fsyntax-only -D"__declspec(X)=" %t-rw.cpp
3
4
typedef bool BOOL;
5
6
BOOL yes() {
7
return __objc_yes;
8
}
9
10
BOOL no() {
11
return __objc_no;
12
}
13
14
BOOL which (int flag) {
15
return flag ? yes() : no();
16
}
17
18
int main() {
19
which (__objc_yes);
20
which (__objc_no);
21
return __objc_yes;
22
}