summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/attr-naked.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/attr-naked.c')
-rw-r--r--test/CodeGen/attr-naked.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/CodeGen/attr-naked.c b/test/CodeGen/attr-naked.c
index 2387d28..c07dd8d 100644
--- a/test/CodeGen/attr-naked.c
+++ b/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() nounwind noinline naked {
+// CHECK: define void @t1() [[NAKED:#[0-9]+]] {
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() nounwind noinline naked {
+// CHECK: define void @t2() [[NAKED]] {
__attribute((naked, always_inline)) void t2() {
}
+
+// CHECK: attributes [[NAKED]] = { naked noinline nounwind{{.*}} }
OpenPOWER on IntegriCloud