brintos

brintos / llvm-project-archived public Read only

0
0
Text · 490 B · e462cb5 Raw
16 lines · c
1// Smoke test for ClangIR-to-LLVM IR code generation2// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-llvm %s -o %t-cir.ll3// RUN: FileCheck %s --input-file %t-cir.ll4// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm %s -o %t.ll5// RUN: FileCheck %s -check-prefix=OGCG --input-file %t.ll6 7int b = 2;8 9// CHECK: @b = global i32 2, align 410// OGCG:  @b = global i32 2, align 411 12int a;13 14// CHECK: @a = global i32 0, align 415// OGCG:  @a = global i32 0, align 416