repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git]
/
clang
/
test
/
CodeGenCXX
/
cast-to-ref-bool.cpp
blob
d7681275c407b962a827523f6c1daa49b0500226
1
// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s
2
3
// CHECK-LABEL: main
4
int
main
(
int
argc
,
char
**
argv
) {
5
// CHECK: load i8, ptr %
6
// CHECK-NEXT: trunc i8 %{{.+}} to i1
7
bool
b
= (
bool
&)
argv
[
argc
][
1
];
8
return
b
;
9
}