brintos

brintos / llvm-project-archived public Read only

0
0
Text · 467 B · 2076f4d Raw
18 lines · c
1// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s2 3// Test annotation attributes are emitted for declarations.4 5__attribute__((annotate("bar"))) int foo();6 7int main() {8  return foo();9}10 11// CHECK: target triple12// CHECK-DAG: private unnamed_addr constant [4 x i8] c"bar\00", section "llvm.metadata"13 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"17 18