22 lines · cpp
1// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -S %s -o - | FileCheck %s -check-prefix=ASM2 3// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-llvm-bc %s -o %t.bc4// RUN: llvm-dis %t.bc -o - | FileCheck %s -check-prefix=BC5 6// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-obj %s -o %t.o7// RUN: llvm-objdump -t %t.o | FileCheck %s -check-prefix=OBJ8 9// TODO: Make this test target-independent10// REQUIRES: x86-registered-target11 12int x = 1;13 14// BC: @x = {{(dso_local )?}}global i32 115 16// ASM: x:17// ASM: .long 118// ASM: .size x, 419 20// OBJ: .data21// OBJ-SAME: x22