#define FOO 1
#define BAR "2"
#pragma comment(linker,"foo=" FOO)
#pragma comment(linker," bar=" BAR)
#pragma comment( user, "Compiled on " __DATE__ " at " __TIME__ )
#pragma comment(foo)
#pragma comment(compiler,)
#define foo compiler
#pragma comment(foo)
#pragma comment(foo) x
#pragma comment(user, "foo\abar\nbaz\tsome thing")
#pragma detect_mismatch("test", "1")
#pragma detect_mismatch()
#pragma detect_mismatch("test")
#pragma detect_mismatch("test", 1)
#pragma detect_mismatch("test", BAR)
__pragma(comment(linker," bar=" BAR))
#define MACRO_WITH__PRAGMA { \
__pragma(warning(push)); \
__pragma(warning(disable: 10000)); \
1 + (2 > 3) ? 4 : 5; \
__pragma(warning(pop)); \
}
#define PRAGMA_IN_ARGS(p) p
void f(void)
{
__pragma()
MACRO_WITH__PRAGMA
PRAGMA_IN_ARGS(MACRO_WITH__PRAGMA) }
#pragma include_alias("test.h", "macro_arg_directive.h" )
#include "test.h"
void test( void ) {
n = 12;
}
#pragma include_alias(<bar.h>, "bar.h")
#pragma include_alias("foo.h", <bar.h>)
#pragma include_alias("test.h")
#pragma include_alias(".\pp-record.h", "does_not_exist.h")
#include "pp-record.h"
#pragma include_alias(12)
#define test
#pragma include_alias(<bar.h>, <stdio.h>)
#pragma include_alias("bar.h", "pr2086.h")
#include "bar.h"
#if defined(test)
#pragma include_alias("test.h")
#endif
#define B "pp-record.h"
#pragma include_alias("quux.h", B)
void g(int k) {}
#include "quux.h"
#pragma include_alias("", "foo.h")
#pragma include_alias(<foo.h>, <>)
#pragma warning(push)
#pragma warning(push, 1)
#pragma warning(disable : 4705)
#pragma warning(disable : 123 456 789 ; error : 321)
#pragma warning(once : 321)
#pragma warning(suppress : 321)
#pragma warning(default : 321)
#pragma warning(pop)
#pragma warning(1: 123)
#pragma warning(2: 234 567)
#pragma warning(3: 123; 4: 678)
#pragma warning(5: 123)
#pragma warning(push, 0)
#pragma warning(pop)
#pragma warning
#pragma warning(
#pragma warning()
#pragma warning(push 4)
#pragma warning(push
#pragma warning(push, 5)
#pragma warning(pop, 1)
#pragma warning(push, 1) asdf
#pragma warning(disable 4705)
#pragma warning(disable : 0)
#pragma warning(default 321)
#pragma warning(asdf : 321)
#pragma warning(push, -1)
#pragma runtime_checks("sc", restore)
#pragma intrinsic(memset)
#pragma intrinsic(memcpy, strlen, strlen)
#pragma intrinsic()
#pragma intrinsic(asdf)
#pragma intrinsic(main)
#pragma intrinsic(
#pragma intrinsic(int)
#pragma intrinsic(strcmp) asdf
#define __INTRIN_H
#pragma intrinsic(asdf)
#pragma intrinsic(memset)
#undef __INTRIN_H
#pragma intrinsic(asdf)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wignored-pragma-intrinsic"
#pragma intrinsic(asdf)
#pragma clang diagnostic pop
#pragma intrinsic(asdf)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wignored-pragmas"
#pragma intrinsic(asdf)
#pragma clang diagnostic pop
#pragma intrinsic(asdf)
#pragma function(memset)
#pragma function(memcpy, strlen, strlen)
#pragma function()
#pragma function(asdf)
#pragma function(main)
#pragma function(
#pragma function(int)
#pragma function(strcmp) asdf
#define __INTRIN_H
#pragma function(asdf)
#pragma function(memset)
#undef __INTRIN_H
#pragma function(asdf)
void pragma_function_foo() {
#pragma function(memset)
}
#pragma optimize
#pragma optimize(
#pragma optimize(a
#pragma optimize("g"
#pragma optimize("g",
#pragma optimize("g",xyz
#pragma optimize("g",on)
#pragma optimize("",on)
#pragma optimize("", on) asdf
void pragma_optimize_foo() {
#pragma optimize("", on)
}
#pragma execution_character_set
#pragma execution_character_set(
#pragma execution_character_set()
#pragma execution_character_set(asdf
#pragma execution_character_set(asdf)
#pragma execution_character_set(push
#pragma execution_character_set(pop,)
#pragma execution_character_set(pop,"asdf")
#pragma execution_character_set(push,
#pragma execution_character_set(push,)
#pragma execution_character_set(push,asdf)
#pragma execution_character_set(push, "asdf")
#pragma execution_character_set(push)
#pragma execution_character_set(push, "utf-8")
#pragma execution_character_set(push, "UTF-8")
#pragma execution_character_set(pop)