Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Preprocessor / print-pragma-microsoft.c
blobd121d93f0d8577e55973ae226c9eb2924917c7bf
1 // RUN: %clang_cc1 %s -fms-extensions -E -o - | FileCheck %s
3 #define BAR "2"
4 #pragma comment(linker, "bar=" BAR)
5 // CHECK: #pragma comment(linker, "bar=" "2")
6 #pragma comment(user, "Compiled on " __DATE__ " at " __TIME__)
7 // CHECK: #pragma comment(user, "Compiled on " "{{[^"]*}}" " at " "{{[^"]*}}")
9 #define KEY1 "KEY1"
10 #define KEY2 "KEY2"
11 #define VAL1 "VAL1\""
12 #define VAL2 "VAL2"
14 #pragma detect_mismatch(KEY1 KEY2, VAL1 VAL2)
15 // CHECK: #pragma detect_mismatch("KEY1" "KEY2", "VAL1\"" "VAL2")
17 #define _CRT_PACKING 8
18 #pragma pack(push, _CRT_PACKING)
19 // CHECK: #pragma pack(push, 8)
20 #pragma pack(pop)