blob: 28785ba90063c12e97a379845259e3a51ea00dff [file] [log] [blame]
Alex Lorenz9e7bf162017-04-18 14:33:39 +00001// RUN: %clang_cc1 -triple i386-pc-win32 -std=c++11 -verify -Wno-pragma-clang-attribute -fms-extensions -fms-compatibility %s
2
3#pragma clang attribute push(__declspec(dllexport), apply_to = function)
4
5void function();
6
7#pragma clang attribute pop
8
9#pragma clang attribute push(__declspec(dllexport, dllimport), apply_to = function) // expected-error {{more than one attribute specified in '#pragma clang attribute push'}}
10
11#pragma clang attribute push(__declspec(align), apply_to = variable) // expected-error {{attribute 'align' is not supported by '#pragma clang attribute'}}
12
13#pragma clang attribute push(__declspec(), apply_to = variable) // A noop