source: castxml/trunk/fuentes/test/CMakeLists.txt @ 6513

Last change on this file since 6513 was 6513, checked in by mabarracus, 2 years ago

Initial port to lliurex from ubuntu

File size: 18.7 KB
Line 
1#=============================================================================
2# Copyright Kitware, Inc.
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#     http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#=============================================================================
16
17# Keep test binaries away from main binaries.
18unset(CMAKE_RUNTIME_OUTPUT_DIRECTORY)
19unset(CMAKE_LIBRARY_OUTPUT_DIRECTORY)
20unset(CMAKE_ARCHIVE_OUTPUT_DIRECTORY)
21
22find_package(LibXml2 QUIET)
23
24macro(castxml_test_cmd test)
25  set(command $<TARGET_FILE:castxml> ${ARGN})
26  set(_castxml_expect ${castxml_test_cmd_expect} cmd.${test})
27  add_test(
28    NAME cmd.${test}
29    COMMAND ${CMAKE_COMMAND}
30    "-Dcommand:STRING=${command}"
31    "-Dexpect=${_castxml_expect}"
32    ${castxml_test_cmd_extra_arguments}
33    -P ${CMAKE_CURRENT_SOURCE_DIR}/run.cmake
34    )
35endmacro()
36
37macro(castxml_test_gccxml_common prefix ext std test)
38  if(DEFINED castxml_test_gccxml_custom_start)
39    set(_castxml_start ${castxml_test_gccxml_custom_start})
40  else()
41    set(_castxml_start --castxml-start start)
42  endif()
43  if(castxml_test_gccxml_custom_input)
44    set(_castxml_input ${castxml_test_gccxml_custom_input})
45  else()
46    set(_castxml_input ${test})
47  endif()
48  set(_castxml_expect ${prefix}.${std}.${test})
49  if("${std}" MATCHES "^gnu(.*)$")
50    list(APPEND _castxml_expect ${prefix}.c${CMAKE_MATCH_1}.${test})
51  endif()
52  list(APPEND _castxml_expect ${prefix}.any.${test})
53  set(command $<TARGET_FILE:castxml>
54    --castxml-gccxml
55    ${_castxml_start}
56    -std=${std}
57    ${CMAKE_CURRENT_LIST_DIR}/input/${_castxml_input}.${ext}
58    -o ${prefix}.${std}.${test}.xml
59    ${castxml_test_gccxml_extra_arguments}
60    )
61  add_test(
62    NAME ${prefix}.${std}.${test}
63    COMMAND ${CMAKE_COMMAND}
64    "-Dcommand:STRING=${command}"
65    "-Dexpect=${_castxml_expect}"
66    "-Dxml=${prefix}.${std}.${test}.xml"
67    "-Dxmllint=${LIBXML2_XMLLINT_EXECUTABLE}"
68    -P ${CMAKE_CURRENT_SOURCE_DIR}/run.cmake
69    )
70endmacro()
71
72macro(castxml_test_gccxml_c89 test)
73  castxml_test_gccxml_common(gccxml c c89 ${test})
74endmacro()
75
76macro(castxml_test_gccxml_gnu89 test)
77  castxml_test_gccxml_common(gccxml c gnu89 ${test})
78endmacro()
79
80macro(castxml_test_gccxml_cxx98 test)
81  castxml_test_gccxml_common(gccxml cxx c++98 ${test})
82endmacro()
83
84macro(castxml_test_gccxml_gnuxx98 test)
85  castxml_test_gccxml_common(gccxml cxx gnu++98 ${test})
86endmacro()
87
88macro(castxml_test_gccxml_cxx11 test)
89  castxml_test_gccxml_common(gccxml cxx c++11 ${test})
90endmacro()
91
92macro(castxml_test_gccxml_gnuxx11 test)
93  castxml_test_gccxml_common(gccxml cxx gnu++11 ${test})
94endmacro()
95
96macro(castxml_test_gccxml_cxx14 test)
97  castxml_test_gccxml_common(gccxml cxx c++14 ${test})
98endmacro()
99
100macro(castxml_test_gccxml_gnuxx14 test)
101  castxml_test_gccxml_common(gccxml cxx gnu++14 ${test})
102endmacro()
103
104macro(castxml_test_gccxml_broken_cxx98 test)
105  castxml_test_gccxml_common(gccxml.broken cxx c++98 ${test})
106endmacro()
107
108macro(castxml_test_gccxml_broken_gnuxx98 test)
109  castxml_test_gccxml_common(gccxml.broken cxx gnu++98 ${test})
110endmacro()
111
112macro(castxml_test_gccxml_broken_cxx11 test)
113  castxml_test_gccxml_common(gccxml.broken cxx c++11 ${test})
114endmacro()
115
116macro(castxml_test_gccxml_broken_gnuxx11 test)
117  castxml_test_gccxml_common(gccxml.broken cxx gnu++11 ${test})
118endmacro()
119
120macro(castxml_test_gccxml_broken_cxx14 test)
121  castxml_test_gccxml_common(gccxml.broken cxx c++14 ${test})
122endmacro()
123
124macro(castxml_test_gccxml_broken_gnuxx14 test)
125  castxml_test_gccxml_common(gccxml.broken cxx gnu++14 ${test})
126endmacro()
127
128macro(castxml_test_gccxml_c test)
129  castxml_test_gccxml_c89(${test})
130  castxml_test_gccxml_gnu89(${test})
131endmacro()
132
133macro(castxml_test_gccxml test)
134  castxml_test_gccxml_cxx98(${test})
135  castxml_test_gccxml_gnuxx98(${test})
136  castxml_test_gccxml_cxx11(${test})
137  castxml_test_gccxml_gnuxx11(${test})
138  castxml_test_gccxml_cxx14(${test})
139  castxml_test_gccxml_gnuxx14(${test})
140endmacro()
141
142macro(castxml_test_gccxml_broken test)
143  castxml_test_gccxml_broken_cxx98(${test})
144  castxml_test_gccxml_broken_gnuxx98(${test})
145  castxml_test_gccxml_broken_cxx11(${test})
146  castxml_test_gccxml_broken_gnuxx11(${test})
147  castxml_test_gccxml_broken_cxx14(${test})
148  castxml_test_gccxml_broken_gnuxx14(${test})
149endmacro()
150
151set(input ${CMAKE_CURRENT_LIST_DIR}/input)
152set(empty_c ${input}/empty.c)
153set(empty_cxx ${input}/empty.cxx)
154set(empty_m ${input}/empty.m)
155set(empty_mm ${input}/empty.mm)
156
157castxml_test_cmd(help1 -help)
158castxml_test_cmd(help2 --help)
159castxml_test_cmd(no-arguments)
160castxml_test_cmd(version --version)
161
162castxml_test_cmd(cc-missing --castxml-cc-gnu)
163castxml_test_cmd(cc-option --castxml-cc-gnu -)
164castxml_test_cmd(cc-paren-castxml --castxml-cc-gnu "(" --castxml-cc-msvc ")")
165castxml_test_cmd(cc-paren-nested --castxml-cc-gnu "(" "(" ")" ")")
166castxml_test_cmd(cc-paren-unbalanced --castxml-cc-gnu "(")
167castxml_test_cmd(cc-twice --castxml-cc-msvc cl --castxml-cc-gnu gcc)
168castxml_test_cmd(cc-unknown --castxml-cc-unknown cc)
169castxml_test_cmd(gccxml-and-E --castxml-gccxml -E)
170castxml_test_cmd(gccxml-twice --castxml-gccxml --castxml-gccxml)
171castxml_test_cmd(gccxml-and-c99 --castxml-gccxml -std=c99 ${empty_c})
172castxml_test_cmd(gccxml-and-c11 --castxml-gccxml -std=c11 ${empty_c})
173castxml_test_cmd(gccxml-and-c++11 --castxml-gccxml -std=c++11 ${empty_cxx})
174castxml_test_cmd(gccxml-and-c++14 --castxml-gccxml -std=c++14 ${empty_cxx})
175castxml_test_cmd(gccxml-and-objc1 --castxml-gccxml ${empty_m})
176castxml_test_cmd(gccxml-and-objc2 --castxml-gccxml ${empty_mm})
177castxml_test_cmd(gccxml-empty-c++98 --castxml-gccxml -std=c++98 ${empty_cxx})
178castxml_test_cmd(gccxml-empty-c++98-E --castxml-gccxml -std=c++98 ${empty_cxx} -E)
179castxml_test_cmd(gccxml-empty-c++98-c --castxml-gccxml -std=c++98 ${empty_cxx} -c)
180castxml_test_cmd(std-c++98-src-c -std=c++98 ${empty_c})
181castxml_test_cmd(std-c89-src-cxx -std=c89 ${empty_cxx})
182castxml_test_cmd(input-missing ${input}/does-not-exist.c)
183castxml_test_cmd(o-missing -o)
184castxml_test_cmd(start-missing --castxml-start)
185castxml_test_cmd(rsp-empty @${input}/empty.rsp)
186castxml_test_cmd(rsp-missing @${input}/does-not-exist.rsp)
187castxml_test_cmd(rsp-o-missing @${input}/o-missing.rsp)
188
189# Test predefined macros when not using --castxml-cc-<id>.
190math(EXPR __castxml__ "1000000*${CastXML_VERSION_MAJOR} + 1000*${CastXML_VERSION_MINOR} + ${CastXML_VERSION_PATCH}")
191configure_file(expect/cmd.predefined-macros.stdout.txt.in
192               expect/cmd.predefined-macros.stdout.txt @ONLY)
193set(castxml_test_cmd_expect ${CMAKE_CURRENT_BINARY_DIR}/expect/cmd.predefined-macros)
194castxml_test_cmd(predefined-macros --castxml-gccxml ${empty_cxx} -E -dM)
195unset(castxml_test_cmd_expect)
196
197# Test --castxml-cc-gnu detection.
198add_executable(cc-gnu cc-gnu.c)
199set_property(SOURCE cc-gnu.c APPEND PROPERTY COMPILE_DEFINITIONS
200  "TEST_DIR=\"${CMAKE_CURRENT_SOURCE_DIR}\"")
201castxml_test_cmd(cc-gnu-bad-cmd --castxml-cc-gnu cc-gnu-bad-cmd ${empty_cxx})
202castxml_test_cmd(cc-gnu-src-c-E --castxml-cc-gnu $<TARGET_FILE:cc-gnu> ${empty_c} -E -dM)
203castxml_test_cmd(cc-gnu-src-cxx-E --castxml-cc-gnu $<TARGET_FILE:cc-gnu> ${empty_cxx} -E -dM)
204castxml_test_cmd(cc-gnu-src-cxx-cmd --castxml-cc-gnu $<TARGET_FILE:cc-gnu> ${empty_cxx} "-###")
205castxml_test_cmd(cc-gnu-tgt-amd64 --castxml-cc-gnu "(" $<TARGET_FILE:cc-gnu> --cc-define=__amd64__ ")" ${empty_cxx} "-###")
206castxml_test_cmd(cc-gnu-tgt-explicit --castxml-cc-gnu "(" $<TARGET_FILE:cc-gnu> ")" -target explicit-target-triple ${empty_cxx} "-###")
207castxml_test_cmd(cc-gnu-tgt-i386 --castxml-cc-gnu "(" $<TARGET_FILE:cc-gnu> --cc-define=__i386__ ")" ${empty_cxx} "-###")
208castxml_test_cmd(cc-gnu-tgt-i386-opt-E --castxml-cc-gnu "(" $<TARGET_FILE:cc-gnu> --cc-define=__i386__ --cc-define=__OPTIMIZE__ ")" ${empty_cxx} -E -dM)
209castxml_test_cmd(cc-gnu-tgt-mingw --castxml-cc-gnu "(" $<TARGET_FILE:cc-gnu> --cc-define=_WIN32 --cc-define=__MINGW32__ ")" ${empty_cxx} "-###")
210castxml_test_cmd(cc-gnu-tgt-win --castxml-cc-gnu "(" $<TARGET_FILE:cc-gnu> --cc-define=_WIN32 ")" ${empty_cxx} "-###")
211castxml_test_cmd(cc-gnu-tgt-x86_64 --castxml-cc-gnu "(" $<TARGET_FILE:cc-gnu> --cc-define=__x86_64__ ")" ${empty_cxx} "-###")
212castxml_test_cmd(cc-gnu-std-c++98 --castxml-cc-gnu "(" $<TARGET_FILE:cc-gnu>              -ansi ")" ${empty_cxx} "-###")
213castxml_test_cmd(cc-gnu-std-c++11 --castxml-cc-gnu "(" $<TARGET_FILE:cc-gnu> -std=201103L -ansi ")" ${empty_cxx} "-###")
214castxml_test_cmd(cc-gnu-std-c++14 --castxml-cc-gnu "(" $<TARGET_FILE:cc-gnu> -std=201402L -ansi ")" ${empty_cxx} "-###")
215castxml_test_cmd(cc-gnu-std-gnu++98 --castxml-cc-gnu "(" $<TARGET_FILE:cc-gnu>              ")" ${empty_cxx} "-###")
216castxml_test_cmd(cc-gnu-std-gnu++11 --castxml-cc-gnu "(" $<TARGET_FILE:cc-gnu> -std=201103L ")" ${empty_cxx} "-###")
217castxml_test_cmd(cc-gnu-std-gnu++14 --castxml-cc-gnu "(" $<TARGET_FILE:cc-gnu> -std=201402L ")" ${empty_cxx} "-###")
218castxml_test_cmd(cc-gnu-std-explicit --castxml-cc-gnu "(" $<TARGET_FILE:cc-gnu> -std=199901L ")" -std=c++14 ${empty_cxx} "-###")
219castxml_test_cmd(cc-gnu-c-bad-cmd --castxml-cc-gnu-c "(" cc-gnu-c-bad-cmd ")" ${empty_c})
220castxml_test_cmd(cc-gnu-c-src-c-E --castxml-cc-gnu-c $<TARGET_FILE:cc-gnu> ${empty_c} -E -dM)
221castxml_test_cmd(cc-gnu-c-src-c-cmd --castxml-cc-gnu-c $<TARGET_FILE:cc-gnu> ${empty_c} "-###")
222castxml_test_cmd(cc-gnu-c-std-c89 --castxml-cc-gnu-c "(" $<TARGET_FILE:cc-gnu>              -ansi ")" ${empty_c} "-###")
223castxml_test_cmd(cc-gnu-c-std-c99 --castxml-cc-gnu-c "(" $<TARGET_FILE:cc-gnu> -std=199901L -ansi ")" ${empty_c} "-###")
224castxml_test_cmd(cc-gnu-c-std-c11 --castxml-cc-gnu-c "(" $<TARGET_FILE:cc-gnu> -std=201112L -ansi ")" ${empty_c} "-###")
225castxml_test_cmd(cc-gnu-c-std-gnu89 --castxml-cc-gnu-c "(" $<TARGET_FILE:cc-gnu>              ")" ${empty_c} "-###")
226castxml_test_cmd(cc-gnu-c-std-gnu99 --castxml-cc-gnu-c "(" $<TARGET_FILE:cc-gnu> -std=199901L ")" ${empty_c} "-###")
227castxml_test_cmd(cc-gnu-c-std-gnu11 --castxml-cc-gnu-c "(" $<TARGET_FILE:cc-gnu> -std=201112L ")" ${empty_c} "-###")
228castxml_test_cmd(cc-gnu-c-tgt-i386-opt-E --castxml-cc-gnu-c "(" $<TARGET_FILE:cc-gnu> --cc-define=__i386__ --cc-define=__OPTIMIZE__ ")" ${empty_c} -E -dM)
229
230# Test --castxml-cc-msvc detection.
231add_executable(cc-msvc cc-msvc.c)
232set(castxml_test_cmd_extra_arguments "-Dprologue=${CMAKE_CURRENT_SOURCE_DIR}/cc-msvc.cmake")
233castxml_test_cmd(cc-msvc-bad-cmd --castxml-cc-msvc cc-msvc-bad-cmd ${empty_cxx})
234castxml_test_cmd(cc-msvc-src-c-E --castxml-cc-msvc $<TARGET_FILE:cc-msvc> ${empty_c} -E -dM)
235castxml_test_cmd(cc-msvc-src-cxx-E --castxml-cc-msvc $<TARGET_FILE:cc-msvc> ${empty_cxx} -E -dM)
236castxml_test_cmd(cc-msvc-src-cxx-cmd --castxml-cc-msvc $<TARGET_FILE:cc-msvc> ${empty_cxx} "-###")
237castxml_test_cmd(cc-msvc-tgt-amd64 --castxml-cc-msvc "(" $<TARGET_FILE:cc-msvc> --cc-define=_M_AMD64 ")" ${empty_cxx} "-###")
238castxml_test_cmd(cc-msvc-tgt-explicit --castxml-cc-msvc "(" $<TARGET_FILE:cc-msvc> ")" -target explicit-target-triple ${empty_cxx} "-###")
239castxml_test_cmd(cc-msvc-tgt-i386 --castxml-cc-msvc "(" $<TARGET_FILE:cc-msvc> --cc-define=_M_IX86 ")" ${empty_cxx} "-###")
240castxml_test_cmd(cc-msvc-tgt-win --castxml-cc-msvc "(" $<TARGET_FILE:cc-msvc> --cc-define=_WIN32 ")" ${empty_cxx} "-###")
241castxml_test_cmd(cc-msvc-tgt-x86_64 --castxml-cc-msvc "(" $<TARGET_FILE:cc-msvc> --cc-define=_M_X64 ")" ${empty_cxx} "-###")
242castxml_test_cmd(cc-msvc-std-c++98 --castxml-cc-msvc "(" $<TARGET_FILE:cc-msvc> -msc=1500 ")" ${empty_cxx} "-###")
243castxml_test_cmd(cc-msvc-std-c++11 --castxml-cc-msvc "(" $<TARGET_FILE:cc-msvc> -msc=1600 ")" ${empty_cxx} "-###")
244castxml_test_cmd(cc-msvc-std-c++14 --castxml-cc-msvc "(" $<TARGET_FILE:cc-msvc> -msc=1900 ")" ${empty_cxx} "-###")
245castxml_test_cmd(cc-msvc-std-explicit --castxml-cc-msvc "(" $<TARGET_FILE:cc-msvc> -msc=1500 ")" -std=gnu++14 ${empty_cxx} "-###")
246castxml_test_cmd(cc-msvc-c-bad-cmd --castxml-cc-msvc-c "(" cc-msvc-c-bad-cmd ")" ${empty_c})
247castxml_test_cmd(cc-msvc-c-src-c-E --castxml-cc-msvc-c $<TARGET_FILE:cc-msvc> ${empty_c} -E -dM)
248castxml_test_cmd(cc-msvc-c-src-c-cmd --castxml-cc-msvc-c $<TARGET_FILE:cc-msvc> ${empty_c} "-###")
249castxml_test_cmd(cc-msvc-c-std-c89 --castxml-cc-msvc-c "(" $<TARGET_FILE:cc-msvc> ")" ${empty_c} "-###")
250unset(castxml_test_cmd_extra_arguments)
251
252castxml_test_gccxml(ArrayType)
253castxml_test_gccxml(ArrayType-incomplete)
254castxml_test_gccxml(Class)
255castxml_test_gccxml(Class-abstract)
256castxml_test_gccxml(Class-annotate)
257castxml_test_gccxml(Class-base-offset)
258castxml_test_gccxml(Class-base-typedef)
259castxml_test_gccxml(Class-bases)
260castxml_test_gccxml(Class-forward)
261castxml_test_gccxml(Class-friends)
262castxml_test_gccxml(Class-implicit-member-access)
263castxml_test_gccxml(Class-implicit-member-access-mutable)
264castxml_test_gccxml(Class-implicit-member-array)
265castxml_test_gccxml(Class-implicit-member-bad-base)
266castxml_test_gccxml(Class-implicit-member-const)
267castxml_test_gccxml(Class-implicit-member-reference)
268castxml_test_gccxml(Class-implicit-members)
269castxml_test_gccxml(Class-incomplete)
270castxml_test_gccxml(Class-incomplete-twice)
271castxml_test_gccxml(Class-member-template)
272castxml_test_gccxml(Class-partial-template-member-Typedef)
273castxml_test_gccxml(Class-template)
274castxml_test_gccxml(Class-template-Method-Argument-const)
275castxml_test_gccxml(Class-template-Method-Argument-default)
276castxml_test_gccxml(Class-template-Method-return-const)
277castxml_test_gccxml(Class-template-bases)
278castxml_test_gccxml(Class-template-constructor-template)
279castxml_test_gccxml(Class-template-friends)
280castxml_test_gccxml(Class-template-member-Typedef)
281castxml_test_gccxml(Class-template-member-Typedef-const)
282castxml_test_gccxml(Class-template-member-template)
283castxml_test_gccxml(Constructor)
284castxml_test_gccxml(Constructor-annotate)
285castxml_test_gccxml(Converter)
286castxml_test_gccxml(Converter-annotate)
287castxml_test_gccxml(CvQualifiedType)
288castxml_test_gccxml(Destructor)
289castxml_test_gccxml(Destructor-annotate)
290castxml_test_gccxml(Enumeration)
291castxml_test_gccxml(Enumeration-annotate)
292castxml_test_gccxml(Enumeration-anonymous)
293castxml_test_gccxml(Field)
294castxml_test_gccxml(Field-annotate)
295castxml_test_gccxml(Function)
296castxml_test_gccxml(Function-annotate)
297castxml_test_gccxml(Function-Argument-annotate)
298castxml_test_gccxml(Function-Argument-decay)
299castxml_test_gccxml(Function-Argument-default)
300castxml_test_gccxml(Function-rvalue-reference)
301castxml_test_gccxml(Function-template)
302castxml_test_gccxml(Function-throw)
303castxml_test_gccxml(Function-variadic)
304castxml_test_gccxml(FunctionType)
305castxml_test_gccxml(FunctionType-variadic)
306castxml_test_gccxml(FundamentalType)
307castxml_test_gccxml(FundamentalTypes)
308castxml_test_gccxml(Method)
309castxml_test_gccxml(Method-annotate)
310castxml_test_gccxml(Method-overrides)
311castxml_test_gccxml(Method-rvalue-reference)
312castxml_test_gccxml(MethodType)
313castxml_test_gccxml(MethodType-cv)
314castxml_test_gccxml(Namespace)
315castxml_test_gccxml(Namespace-anonymous)
316castxml_test_gccxml(Namespace-Class-members)
317castxml_test_gccxml(Namespace-Class-partial-template-members)
318castxml_test_gccxml(Namespace-Class-template-members)
319castxml_test_gccxml(Namespace-Function-template-members)
320castxml_test_gccxml(Namespace-empty)
321castxml_test_gccxml(Namespace-extern-C-members)
322castxml_test_gccxml(Namespace-inline)
323castxml_test_gccxml(Namespace-inline-start)
324castxml_test_gccxml(Namespace-inline-template)
325castxml_test_gccxml(Namespace-nested)
326castxml_test_gccxml(Namespace-repeat)
327castxml_test_gccxml(Namespace-repeat-start)
328castxml_test_gccxml(OffsetType)
329castxml_test_gccxml(OffsetType-cv)
330castxml_test_gccxml(OperatorFunction)
331castxml_test_gccxml(OperatorFunction-annotate)
332castxml_test_gccxml(OperatorMethod)
333castxml_test_gccxml(OperatorMethod-annotate)
334castxml_test_gccxml(PointerType)
335castxml_test_gccxml(ReferenceType)
336castxml_test_gccxml(RValueReferenceType)
337castxml_test_gccxml(TypeAlias)
338castxml_test_gccxml(TypeAliasTemplate)
339castxml_test_gccxml(Typedef-annotate)
340castxml_test_gccxml(Typedef-paren)
341castxml_test_gccxml(Typedef-to-Class-template)
342castxml_test_gccxml(Typedef-to-Enumeration)
343castxml_test_gccxml(Typedef-to-Enumeration-anonymous)
344castxml_test_gccxml(Typedef-to-FundamentalType-mode)
345castxml_test_gccxml(Typedef-to-extern-C-FundamentalType-mode)
346castxml_test_gccxml(Variable)
347castxml_test_gccxml(Variable-annotate)
348castxml_test_gccxml(Variable-in-Class)
349castxml_test_gccxml(Variable-init)
350
351# Test multiple start declarations.
352set(castxml_test_gccxml_custom_input Namespace-nested)
353set(castxml_test_gccxml_custom_start --castxml-start start::ns1,start::ns3)
354castxml_test_gccxml(Namespace-nested-1)
355set(castxml_test_gccxml_custom_start --castxml-start start::ns1 --castxml-start start::ns3)
356castxml_test_gccxml(Namespace-nested-2)
357unset(castxml_test_gccxml_custom_start)
358unset(castxml_test_gccxml_custom_input)
359
360castxml_test_gccxml(invalid-decl-for-type)
361castxml_test_gccxml(qualified-type-name)
362castxml_test_gccxml(using-declaration-class)
363castxml_test_gccxml(using-declaration-ns)
364castxml_test_gccxml(using-declaration-start)
365castxml_test_gccxml(using-directive-ns)
366castxml_test_gccxml(using-directive-start)
367
368if(";${LLVM_TARGETS_TO_BUILD};" MATCHES ";X86;")
369  set(castxml_test_gccxml_extra_arguments -target i386-pc-windows-msvc)
370  castxml_test_gccxml(Function-calling-convention-ms)
371  castxml_test_gccxml(Function-calling-convention-ms-annotate)
372  castxml_test_gccxml(implicit-decl-ms)
373  castxml_test_gccxml(inline-asm-ms)
374  unset(castxml_test_gccxml_extra_arguments)
375endif()
376
377castxml_test_gccxml_c(FunctionNoProto)
378castxml_test_gccxml_c(FundamentalType)
379castxml_test_gccxml_c(Typedef-called-class)
380
381castxml_test_gccxml_c(invalid)
382
383castxml_test_gccxml_broken(ReferenceType-to-Class-template)
384
385set(castxml_test_gccxml_extra_arguments --castxml-cc-gnu-c "(" $<TARGET_FILE:cc-gnu> --cc-define=__x86_64__ ")")
386castxml_test_gccxml_c(GNU-float128)
387set(castxml_test_gccxml_custom_input GNU-float128)
388set(castxml_test_gccxml_custom_start "")
389castxml_test_gccxml_c(GNU-float128-nostart)
390unset(castxml_test_gccxml_custom_start)
391unset(castxml_test_gccxml_custom_input)
392unset(castxml_test_gccxml_extra_arguments)
393
394set(castxml_test_gccxml_extra_arguments --castxml-cc-gnu "(" $<TARGET_FILE:cc-gnu> --cc-define=__x86_64__ ")")
395castxml_test_gccxml(GNU-float128)
396set(castxml_test_gccxml_custom_input GNU-float128)
397set(castxml_test_gccxml_custom_start "")
398castxml_test_gccxml(GNU-float128-nostart)
399unset(castxml_test_gccxml_custom_start)
400unset(castxml_test_gccxml_custom_input)
401unset(castxml_test_gccxml_extra_arguments)
402
403set(castxml_test_gccxml_extra_arguments --castxml-cc-gnu-c $<TARGET_FILE:cc-gnu>)
404castxml_test_gccxml_c(GNU-va_arg_pack)
405unset(castxml_test_gccxml_extra_arguments)
406
407set(castxml_test_gccxml_extra_arguments --castxml-cc-gnu $<TARGET_FILE:cc-gnu>)
408castxml_test_gccxml(GNU-va_arg_pack)
409unset(castxml_test_gccxml_extra_arguments)
Note: See TracBrowser for help on using the repository browser.