xref: /llvm-project/clang/test/CodeGenCXX/externc-used-not-replaced.cpp (revision 5c3bde96250c5260773009e691f92cb4823372df)
1 // RUN: %clang_cc1 -triple x86_64-windows -emit-llvm -o - %s | FileCheck %s
2 
3 extern "C" {
4   const char a __attribute__((used)){};
5 }
6 
7 // CHECK: @a = internal constant i8 0
8 // CHECK: @llvm.used = appending global [1 x ptr] [ptr @a]
9