view clang/test/CodeGen/default-function-attr.c @ 236:c4bab56944e8 llvm-original

LLVM 16
author kono
date Wed, 09 Nov 2022 17:45:10 +0900
parents 79ff65ed7e25
children
line wrap: on
line source

// RUN: %clang_cc1 -triple x86_64-unknown-linux -default-function-attr foo=bar -emit-llvm %s -o - | FileCheck %s

// CHECK: define{{.*}} void @foo() #[[X:[0-9]+]]
void foo(void) {}

// CHECK: attributes #[[X]] = {{.*}} "foo"="bar"