summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/attr-naked.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/attr-naked.c')
-rw-r--r--clang/test/CodeGen/attr-naked.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/test/CodeGen/attr-naked.c b/clang/test/CodeGen/attr-naked.c
index a77e1eed950..8490d463a23 100644
--- a/clang/test/CodeGen/attr-naked.c
+++ b/clang/test/CodeGen/attr-naked.c
@@ -4,13 +4,15 @@ void t1() __attribute__((naked));
// Basic functionality check
// (Note that naked needs to imply noinline to work properly.)
-// CHECK: define void @t1() naked noinline nounwind {{.*}} {
+// CHECK: define void @t1() #0 {
void t1()
{
}
// Make sure this doesn't explode in the verifier.
// (It doesn't really make sense, but it isn't invalid.)
-// CHECK: define void @t2() naked noinline nounwind {{.*}} {
+// CHECK: define void @t2() #0 {
__attribute((naked, always_inline)) void t2() {
}
+
+// CHECK: attributes #0 = { naked noinline nounwind "target-features"={{.*}} }
OpenPOWER on IntegriCloud