minix/external/bsd/llvm/dist/clang/test/Lexer/pragma-message2.c
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

19 lines
674 B
C

// RUN: %clang_cc1 -E -Werror -verify %s 2>&1 | FileCheck %s
#pragma message "\\test" // expected-warning {{\test}}
// CHECK: #pragma message("\134test")
#pragma message("\\test") // expected-warning {{\test}}
// CHECK: #pragma message("\134test")
#pragma GCC warning "\"" "te" "st" "\"" // expected-warning {{"test"}}
// CHECK: #pragma GCC warning "\042test\042"
#pragma GCC warning("\"" "te" "st" "\"") // expected-warning {{"test"}}
// CHECK: #pragma GCC warning "\042test\042"
#pragma GCC error "" "[ ]" "" // expected-error {{[ ]}}
// CHECK: #pragma GCC error "[\011]"
#pragma GCC error("" "[ ]" "") // expected-error {{[ ]}}
// CHECK: #pragma GCC error "[\011]"