Mercurial > hg > CbC > CbC_llvm
comparison clang/test/PCH/dllexport-default-arg-closure.cpp @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 1d019706d866 |
children | 1f2b6ac9f198 |
comparison
equal
deleted
inserted
replaced
232:70dce7da266c | 236:c4bab56944e8 |
---|---|
1 // Make sure we emit the MS ABI default ctor closure with PCH. | 1 // Make sure we emit the MS ABI default ctor closure with PCH. |
2 // | 2 // |
3 // Test this without pch. | 3 // Test this without pch. |
4 // RUN: %clang_cc1 -fms-extensions -triple x86_64-windows-msvc -std=c++11 -include %s -emit-llvm -o - %s | FileCheck %s | 4 // RUN: %clang_cc1 -no-opaque-pointers -fms-extensions -triple x86_64-windows-msvc -std=c++11 -include %s -emit-llvm -o - %s | FileCheck %s |
5 | 5 |
6 // Test with pch. | 6 // Test with pch. |
7 // RUN: %clang_cc1 -fms-extensions -triple x86_64-windows-msvc -std=c++11 -emit-pch -o %t %s | 7 // RUN: %clang_cc1 -no-opaque-pointers -fms-extensions -triple x86_64-windows-msvc -std=c++11 -emit-pch -o %t %s |
8 // RUN: %clang_cc1 -fms-extensions -triple x86_64-windows-msvc -std=c++11 -include-pch %t -emit-llvm -o - %s | FileCheck %s | 8 // RUN: %clang_cc1 -no-opaque-pointers -fms-extensions -triple x86_64-windows-msvc -std=c++11 -include-pch %t -emit-llvm -o - %s | FileCheck %s |
9 | 9 |
10 #ifndef HEADER | 10 #ifndef HEADER |
11 #define HEADER | 11 #define HEADER |
12 | 12 |
13 struct __declspec(dllexport) Foo { | 13 struct __declspec(dllexport) Foo { |
16 }; | 16 }; |
17 | 17 |
18 // Demangles as: | 18 // Demangles as: |
19 // void Foo::`default constructor closure'(void) | 19 // void Foo::`default constructor closure'(void) |
20 // CHECK: define weak_odr dso_local dllexport void @"??_FFoo@@QEAAXXZ"(%struct.Foo*{{.*}}) | 20 // CHECK: define weak_odr dso_local dllexport void @"??_FFoo@@QEAAXXZ"(%struct.Foo*{{.*}}) |
21 // CHECK: call %struct.Foo* @"??0Foo@@QEAA@W4E@0@@Z"(%struct.Foo* {{.*}}, i32 0) | 21 // CHECK: call noundef %struct.Foo* @"??0Foo@@QEAA@W4E@0@@Z"(%struct.Foo* {{.*}}, i32 noundef 0) |
22 | 22 |
23 #else | 23 #else |
24 | 24 |
25 | 25 |
26 #endif | 26 #endif |