diff options
Diffstat (limited to 'clang/test/Preprocessor/pragma_microsoft.c')
-rw-r--r-- | clang/test/Preprocessor/pragma_microsoft.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/pragma_microsoft.c b/clang/test/Preprocessor/pragma_microsoft.c index c0ddf74340c..26f0a1df8c1 100644 --- a/clang/test/Preprocessor/pragma_microsoft.c +++ b/clang/test/Preprocessor/pragma_microsoft.c @@ -18,6 +18,11 @@ #pragma comment(user, "foo\abar\nbaz\tsome thing") +#pragma detect_mismatch("test", "1") +#pragma detect_mismatch() // expected-error {{expected string literal in pragma detect_mismatch}} +#pragma detect_mismatch("test") // expected-error {{pragma detect_mismatch is malformed; it requires two comma-separated string literals}} +#pragma detect_mismatch("test", 1) // expected-error {{expected string literal in pragma detect_mismatch}} +#pragma detect_mismatch("test", BAR) // __pragma |