xref: /llvm-project/clang/test/CodeGen/attr-btf_tag-dicomposite-2.c (revision a162b67c98066218d0d00aa13b99afb95d9bb5e6)
1 // REQUIRES: x86-registered-target
2 // RUN: %clang -target x86_64 -g -S -emit-llvm -o - %s | FileCheck %s
3 
4 #define __tag1 __attribute__((btf_decl_tag("tag1")))
5 #define __tag2 __attribute__((btf_decl_tag("tag2")))
6 
7 struct __tag1 __tag2 t1;
8 
foo(struct t1 * arg)9 int foo(struct t1 *arg) {
10   return (int)(long)arg;
11 }
12 
13 // CHECK: define dso_local i32 @foo(
14 // CHECK-NOT: annotations
15