summaryrefslogtreecommitdiffstats
path: root/clang/test/Lexer/minimize_source_to_dependency_directives_invalid_error.c
blob: 020912a4965de06bbdf59d09b210d7946a106e09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Test CF+LF are properly handled along with quoted, multi-line #error
// RUN: %clang_cc1 -DOTHER -print-dependency-directives-minimized-source %s 2>&1 | FileCheck %s

#ifndef TEST
#error "message \
   more message \
   even more"
#endif

#ifdef OTHER
#include <string>
#endif

// CHECK:      #ifdef OTHER
// CHECK-NEXT: #include <string>
// CHECK-NEXT: #endif
OpenPOWER on IntegriCloud