blob: f2fbb64f2f088193cf8e73f1064d26516fe0e1b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
result code = -1
standard error = {
(0): note: include 'tests/preprocessor/output-includes.slang'
(0): note: include 'tests/preprocessor/include-a.slang.h'
(0): note: include 'tests/preprocessor/include/include-pragma-once-c.h'
(0): note: include 'tests/preprocessor/include/pragma-once-c.h'
(0): note: include 'tests/preprocessor/include-a.slang.h'
(0): note: include 'tests/preprocessor/include-a.slang.h'
tests/preprocessor/include-a.slang.h(3): error 30201: function 'bar' already has a body
int bar() { return foo(); }
^~~
tests/preprocessor/include-a.slang.h(3): note: see previous definition of 'bar'
int bar() { return foo(); }
^~~
tests/preprocessor/include-a.slang.h(3): error 30201: function 'bar' already has a body
int bar() { return foo(); }
^~~
tests/preprocessor/include-a.slang.h(3): note: see previous definition of 'bar'
int bar() { return foo(); }
^~~
}
standard output = {
}
|