Home | History | Annotate | Download | only in Preprocessor
      1 // RUN: %clang_cc1 %s -fsyntax-only -fms-extensions -E -o - | FileCheck %s
      2 
      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 " "{{[^"]*}}")
      8 
      9 #define KEY1 "KEY1"
     10 #define KEY2 "KEY2"
     11 #define VAL1 "VAL1\""
     12 #define VAL2 "VAL2"
     13 
     14 #pragma detect_mismatch(KEY1 KEY2, VAL1 VAL2)
     15 // CHECK: #pragma detect_mismatch("KEY1" "KEY2", "VAL1\"" "VAL2")
     16 
     17 #define _CRT_PACKING 8
     18 #pragma pack(push, _CRT_PACKING)
     19 // CHECK: #pragma pack(push, 8)
     20 #pragma pack(pop)
     21