9 lines · cpp
1// RUN: %clang_cc1 -triple x86_64-windows -emit-llvm -o - %s | FileCheck %s2 3extern "C" {4 const char a __attribute__((used)){};5}6 7// CHECK: @a = internal constant i8 08// CHECK: @llvm.used = appending global [1 x ptr] [ptr @a]9 1// RUN: %clang_cc1 -triple x86_64-windows -emit-llvm -o - %s | FileCheck %s2 3extern "C" {4 const char a __attribute__((used)){};5}6 7// CHECK: @a = internal constant i8 08// CHECK: @llvm.used = appending global [1 x ptr] [ptr @a]9