brintos

brintos / llvm-project-archived public Read only

0
0
Text · 847 B · 29df5e4 Raw
29 lines · cpp
1// RUN: %clang_cc1 -triple x86_64-unknown-windows-msvc -fdeclspec -emit-llvm %s -o - | FileCheck %s2// RUN: %clang_cc1 -triple aarch64-unknown-windows-msvc -fdeclspec -emit-llvm %s -o - | FileCheck %s3 4void __attribute__((__preserve_none__)) f() {}5// CHECK-DAG: @"?f@@YVXXZ"6 7void (__attribute__((__preserve_none__)) *p)();8// CHECK-DAG: @"?p@@3P6VXXZEA9 10namespace {11void __attribute__((__preserve_none__)) __attribute__((__used__)) f() { }12}13// CHECK-DAG: @"?f@?A0x{{[^@]*}}@@YVXXZ"14 15namespace n {16void __attribute__((__preserve_none__)) f() {}17}18// CHECK-DAG: @"?f@n@@YVXXZ"19 20struct __declspec(dllexport) S {21  S(const S &) = delete;22  S & operator=(const S &) = delete;23  void __attribute__((__preserve_none__)) m() { }24};25// CHECK-DAG: @"?m@S@@QEAVXXZ"26 27void f(void (__attribute__((__preserve_none__))())) {}28// CHECK-DAG: @"?f@@YAXP6VXXZ@Z"29