[Flang] remove whole-archive option for AIX linker (#76039)
[llvm-project.git] / clang / test / CodeGen / annotations-declaration.c
blob2076f4dc030ae5f0dbcaf9a0bd0a916a9decbc3c
1 // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
3 // Test annotation attributes are emitted for declarations.
5 __attribute__((annotate("bar"))) int foo();
7 int main() {
8 return foo();
11 // CHECK: target triple
12 // CHECK-DAG: private unnamed_addr constant [4 x i8] c"bar\00", section "llvm.metadata"
14 // CHECK: @llvm.global.annotations = appending global [1 x { ptr, ptr, ptr, i32, ptr }] [{
15 // CHECK-SAME: { ptr @foo,
16 // CHECK-SAME: }], section "llvm.metadata"