Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / cast-to-ref-bool.cpp
blobd7681275c407b962a827523f6c1daa49b0500226
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s
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;