From ed5d4adb36bf07481f16bfe46d055396eebb9d0c Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Fri, 11 Jul 2014 20:22:55 +0000 Subject: MS extension: Make __noop be the integer zero, not void We still don't accept '__noop;', and we don't consider __noop to be the integer literal zero. More work is needed. llvm-svn: 212839 --- clang/test/CodeGen/builtin-ms-noop.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'clang/test/CodeGen/builtin-ms-noop.cpp') diff --git a/clang/test/CodeGen/builtin-ms-noop.cpp b/clang/test/CodeGen/builtin-ms-noop.cpp index b579e2d08ce..f5064fbf3c0 100644 --- a/clang/test/CodeGen/builtin-ms-noop.cpp +++ b/clang/test/CodeGen/builtin-ms-noop.cpp @@ -5,9 +5,9 @@ class A { ~A() {} }; -void f() { +int f() { // CHECK: @_Z1fv // CHECK-NOT: call void @_ZN1AD1Ev -// CHECK: ret void - __noop(A()); +// CHECK: ret i32 0 + return __noop(A()); }; -- cgit v1.2.3