Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Index / comment-to-html-xml-conversion-with-original-literals.cpp
blob26ca2238834e00f3cbf6673d257a10ad526dfca5
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
3 constexpr int value(float f) { return int(f); }
5 enum MyEnum {
6 hexadecimal = 0x10 //!< a
7 // CHECK: <Declaration>hexadecimal = 0x10</Declaration>
9 , withSuffix = 1u + 010 //!< b
10 // CHECK: <Declaration>withSuffix = 1u + 010</Declaration>
12 #define ARG(x) x
13 , macroArg = ARG(0x1) //!< c
14 // CHECK: <Declaration>macroArg = ARG(0x1)</Declaration>
16 #define MACROCONCAT(x, y) 22##x##y
17 , macroConcat = MACROCONCAT(3, 2) //!< d
18 // CHECK: <Declaration>macroConcat = MACROCONCAT(3, 2)</Declaration>
20 #define MACRO(a,n) = 0x##a##n
21 , weirdMacros MACRO(2,1) //!< e
22 // CHECK: <Declaration>weirdMacros = 33</Declaration>
24 , floatLiteral = value(0.25e3) //!< f
25 // CHECK: <Declaration>floatLiteral = value(0.25e3)</Declaration>