1 // RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -fsyntax-only -fms-extensions -verify %s
2 // RUN: %clang_cc1 -triple x86_64-pc-windows-msvc -fsyntax-only -fms-extensions -verify %s -DMSVC
4 // Export const variable initialization.
7 // expected-no-diagnostics
11 // expected-warning@+2 {{__declspec attribute 'dllexport' is not supported}}
13 __declspec(dllexport
) int const x
= 3;
18 // expected-warning@+2 {{__declspec attribute 'dllexport' is not supported}}
20 __declspec(dllexport
) int const x
= 3;
28 // expected-warning@+2 {{__declspec attribute 'dllexport' is not supported}}
30 __declspec(dllexport
) int const x
= 3;