[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Sema / pragma-warning.cpp
bloba36ecbd3107a1385e404e100facee132a4f5db3f
1 // RUN: %clang_cc1 -triple x86_64-pc-windows-msvc -fms-extensions -fsyntax-only -verify %s
3 [[deprecated]] void f() {} // expected-note 2 {{marked deprecated here}}
5 #define From__pragma() \
6 __pragma(warning(push)) \
7 __pragma(warning(disable:4996)) \
8 f(); \
9 __pragma(warning(pop))
11 void g() {
12 f(); // expected-warning {{deprecated}}
14 #pragma warning(push)
15 #pragma warning(disable: 4996)
16 f(); // no diag
18 #pragma warning(disable: 49960000)
19 #pragma warning(pop)
21 f(); // expected-warning {{deprecated}}
23 From__pragma(); // no diag