blob: 3cfb3d32e8e2c01315197d0e835275c7286b724f [file] [log] [blame]
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -S %s -o - | FileCheck %s -check-prefix=ASM
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-llvm-bc %s -o %t.bc
// RUN: llvm-dis %t.bc -o - | FileCheck %s -check-prefix=BC
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-obj %s -o %t.o
// RUN: llvm-objdump -t %t.o | FileCheck %s -check-prefix=OBJ
// TODO: Make this test target-independent
// REQUIRES: x86-registered-target
int x = 1;
// BC: @x = {{(dso_local )?}}global i32 1
// ASM: x:
// ASM: .long 1
// ASM: .size x, 4
// OBJ: .data
// OBJ-SAME: x