From 676fbe8105eeb6ff4bb2ed261cb212fcfdbe7b63 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 19 Jan 2019 10:04:05 +0000 Subject: Vendor import of clang trunk r351319 (just before the release_80 branch point): https://llvm.org/svn/llvm-project/cfe/trunk@351319 --- test/CodeGen/default-function-attr.c | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/CodeGen/default-function-attr.c (limited to 'test/CodeGen/default-function-attr.c') diff --git a/test/CodeGen/default-function-attr.c b/test/CodeGen/default-function-attr.c new file mode 100644 index 000000000000..1c186e8e55b9 --- /dev/null +++ b/test/CodeGen/default-function-attr.c @@ -0,0 +1,6 @@ +// 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() {} + +// CHECK: attributes #[[X]] = {{.*}} "foo"="bar" -- cgit v1.3