Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / builtin-ms-noop.cpp
blob70911000da22b5ad99c48e37cb4ee94917c161c3
1 // RUN: %clang_cc1 -fms-extensions -triple x86_64-unknown-unknown -emit-llvm %s -o - | FileCheck %s
3 struct A {
4 ~A() {}
5 };
7 extern "C" int f() {
8 // CHECK: define{{.*}} i32 @f()
9 // CHECK-NOT: call void @_ZN1AD1Ev
10 // CHECK: ret i32 0
11 return __noop(A());
14 extern "C" int g() {
15 return __noop;
16 // CHECK: define{{.*}} i32 @g()
17 // CHECK: ret i32 0
20 extern "C" int h() {
21 return (__noop);
22 // CHECK: define{{.*}} i32 @h()
23 // CHECK: ret i32 0
26 extern "C" int i() {
27 return __noop + 1;
28 // CHECK: define{{.*}} i32 @i()
29 // CHECK: ret i32 1