1 // RUN: c-index-test -test-load-source all -comments-xml-schema=%S/../../bindings/xml/comment-xml-schema.rng %s -std=c++11 | FileCheck %s
2 
value(float f)3 constexpr int value(float f) { return int(f); }
4 
5 enum MyEnum {
6 hexadecimal = 0x10 //!< a
7 // CHECK: <Declaration>hexadecimal = 0x10</Declaration>
8 
9 , withSuffix = 1u + 010 //!< b
10 // CHECK: <Declaration>withSuffix = 1u + 010</Declaration>
11 
12 #define ARG(x) x
13 , macroArg = ARG(0x1) //!< c
14 // CHECK: <Declaration>macroArg = ARG(0x1)</Declaration>
15 
16 #define MACROCONCAT(x, y) 22##x##y
17 , macroConcat = MACROCONCAT(3, 2) //!< d
18 // CHECK: <Declaration>macroConcat = MACROCONCAT(3, 2)</Declaration>
19 
20 #define MACRO(a,n) = 0x##a##n
21 , weirdMacros MACRO(2,1) //!< e
22 // CHECK: <Declaration>weirdMacros = 33</Declaration>
23 
24 , floatLiteral = value(0.25e3) //!< f
25 // CHECK: <Declaration>floatLiteral = value(0.25e3)</Declaration>
26 };
27