Home | History | Annotate | Download | only in Lexer
      1 // RUN: %clang_cc1 -E -Werror -verify %s 2>&1 | FileCheck %s
      2 
      3 #pragma message "\\test" // expected-warning {{\test}}
      4 // CHECK: #pragma message("\134test")
      5 
      6 #pragma message("\\test") // expected-warning {{\test}}
      7 // CHECK: #pragma message("\134test")
      8 
      9 #pragma GCC warning "\"" "te" "st" "\"" // expected-warning {{"test"}}
     10 // CHECK: #pragma GCC warning "\042test\042"
     11 
     12 #pragma GCC warning("\"" "te" "st" "\"") // expected-warning {{"test"}}
     13 // CHECK: #pragma GCC warning "\042test\042"
     14 
     15 #pragma GCC error "" "[	]" "" // expected-error {{[	]}}
     16 // CHECK: #pragma GCC error "[\011]"
     17 
     18 #pragma GCC error("" "[	]" "") // expected-error {{[	]}}
     19 // CHECK: #pragma GCC error "[\011]"
     20