blob: 42552f796914a86f96ad834c8a23c22286343d63 [file] [log] [blame]
// Smoke test for ClangIR-to-LLVM IR code generation
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-llvm %s -o %t-cir.ll
// RUN: FileCheck %s --input-file %t-cir.ll
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm %s -o %t.ll
// RUN: FileCheck %s -check-prefix=OGCG --input-file %t.ll
// Note: The differences between CHECK and OGCG represent incorrect IR lowering
// with ClangIR enabled and will be fixed in a future patch.
int b = 2;
// CHECK: @b = dso_local global i32 2, align 4
// OGCG: @b = global i32 2, align 4
int a;
// CHECK: @a = dso_local global i32 0, align 4
// OGCG: @a = global i32 0, align 4