[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Parser / pragma-attribute-declspec.cpp
blob2881cd57fef9df87a9f9515a09be9a4bef242801
1 // RUN: %clang_cc1 -triple i386-pc-win32 -std=c++11 -verify -Wno-pragma-clang-attribute -fms-extensions -fms-compatibility %s
3 #pragma clang attribute push(__declspec(dllexport), apply_to = function)
5 void function();
7 #pragma clang attribute pop
9 #pragma clang attribute push(__declspec(dllexport, dllimport), apply_to = function)
10 #pragma clang attribute pop
12 #pragma clang attribute push(__declspec(align), apply_to = variable) // expected-error {{attribute 'align' is not supported by '#pragma clang attribute'}}
14 #pragma clang attribute push(__declspec(), apply_to = variable) // A noop