mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 02:26:05 +00:00

This reverts commit 0cd9d8a48bdddb17de2c6388f9d775353f9acab9 and adds the changes described in https://reviews.llvm.org/D110668#3034461.
25 lines
547 B
C++
25 lines
547 B
C++
// RUN: %clang_cc1 -triple x86_64-pc-windows-msvc -fms-extensions -fsyntax-only -verify %s
|
|
|
|
[[deprecated]] void f() {} // expected-note 2 {{marked deprecated here}}
|
|
|
|
#define From__pragma() \
|
|
__pragma(warning(push)) \
|
|
__pragma(warning(disable:4996)) \
|
|
f(); \
|
|
__pragma(warning(pop))
|
|
|
|
void g() {
|
|
f(); // expected-warning {{deprecated}}
|
|
|
|
#pragma warning(push)
|
|
#pragma warning(disable: 4996)
|
|
f(); // no diag
|
|
|
|
#pragma warning(disable: 49960000)
|
|
#pragma warning(pop)
|
|
|
|
f(); // expected-warning {{deprecated}}
|
|
|
|
From__pragma(); // no diag
|
|
}
|