llvm-project/clang/test/Preprocessor/pragma_microsoft.cpp
Reid Kleckner 881dff3683 Lex and ignore Microsoft's #pragma warning(...)
Summary:
This fixes PR17145 and avoids unknown pragma warnings.

This change does not attempt to map MSVC warning numbers to clang
warning flags.  Perhaps in the future we will implement a mapping for
some common subset of Microsoft warnings, but for now we don't.

Reviewers: rsmith

CC: cfe-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D1652

llvm-svn: 190726
2013-09-13 22:00:30 +00:00

4 lines
156 B
C++

// RUN: %clang_cc1 %s -fsyntax-only -std=c++11 -verify -fms-extensions
#pragma warning(push, 4_D) // expected-warning {{requires a level between 1 and 4}}