xref: /llvm-project/llvm/test/tools/llvm-rc/Inputs/cpp-output.rc (revision 518b6c9882101bb8914c171b24998093afbc7ecb)
1*518b6c98SMartin Storsjo// Test that the input originally is included.
2*518b6c98SMartin StorsjoSTRINGTABLE {
3*518b6c98SMartin Storsjo  1 "a"
4*518b6c98SMartin Storsjo}
5*518b6c98SMartin Storsjo#line 2 "cpp-source.rc"
6*518b6c98SMartin Storsjo// Content from a rc file (potentially the source file itself) is included.
7*518b6c98SMartin StorsjoSTRINGTABLE {
8*518b6c98SMartin Storsjo  2 "b"
9*518b6c98SMartin Storsjo}
10*518b6c98SMartin Storsjo// Test a preprocessing directive that starts with leading whitespace.
11*518b6c98SMartin Storsjo  #line 1 "\\some\\path\\header.h"
12*518b6c98SMartin Storsjo// Content from .h files is ignored.
13*518b6c98SMartin Storsjotypedef int Foo;
14*518b6c98SMartin Storsjo#line 123 "\\some\\path\\header.h"
15*518b6c98SMartin Storsjovoid someFunc(void);
16*518b6c98SMartin Storsjo// Check GNU style line markers.
17*518b6c98SMartin Storsjo# 4 "cpp-source.rc" 1
18*518b6c98SMartin StorsjoSTRINGTABLE {
19*518b6c98SMartin Storsjo  3 "c"
20*518b6c98SMartin Storsjo}
21*518b6c98SMartin Storsjo	# 1 "other/header.h" 1
22*518b6c98SMartin Storsjotypedef int Bar;
23*518b6c98SMartin Storsjo# 10 "cpp-source.rc" 2
24*518b6c98SMartin Storsjo// Test that other preprocessor directives are ignored.
25*518b6c98SMartin Storsjo#pragma foo
26*518b6c98SMartin StorsjoSTRINGTABLE {
27*518b6c98SMartin Storsjo  4 "d"
28*518b6c98SMartin Storsjo}
29