aboutsummaryrefslogtreecommitdiffstats
path: root/test/Other/attribute-comment.ll
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-04-19 11:43:21 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-04-19 11:43:21 +0000
commite94e4ca5fd94de185a840e9237b3b483f62342a8 (patch)
treed8db790a2eb2026ae9ccf044a2d6fe88e3d11452 /test/Other/attribute-comment.ll
parentdb5f9270207292b62ea847560c5dd4e9873b57f5 (diff)
downloadexternal_llvm-e94e4ca5fd94de185a840e9237b3b483f62342a8.zip
external_llvm-e94e4ca5fd94de185a840e9237b3b483f62342a8.tar.gz
external_llvm-e94e4ca5fd94de185a840e9237b3b483f62342a8.tar.bz2
Attributes: Don't print trailing whitespace on the function attribute comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179849 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Other/attribute-comment.ll')
-rw-r--r--test/Other/attribute-comment.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Other/attribute-comment.ll b/test/Other/attribute-comment.ll
new file mode 100644
index 0000000..7354e7f
--- /dev/null
+++ b/test/Other/attribute-comment.ll
@@ -0,0 +1,9 @@
+; RUN: opt -S < %s | FileCheck %s -strict-whitespace
+
+; CHECK: {{^}}; Function Attrs: nounwind readnone ssp uwtable{{$}}
+; CHECK-NEXT: define void @test1() #0
+define void @test1() #0 {
+ ret void
+}
+
+attributes #0 = { nounwind ssp "less-precise-fpmad"="false" uwtable "no-frame-pointer-elim"="true" readnone "no-frame-pointer-elim-non-leaf"="true" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" }