source: castxml/trunk/fuentes/.pc/5cfebb0f904131d1df8e36fcb9c290.patch/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.4 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-mingw --castxml-cc-gnu "(" $<TARGET_FILE:cc-gnu> --cc-define=_WIN32 --cc-define=__MINGW32__ ")" ${empty_cxx} "-###")
209castxml_test_cmd(cc-gnu-tgt-win --castxml-cc-gnu "(" $<TARGET_FILE:cc-gnu> --cc-define=_WIN32 ")" ${empty_cxx} "-###")
210castxml_test_cmd(cc-gnu-tgt-x86_64 --castxml-cc-gnu "(" $<TARGET_FILE:cc-gnu> --cc-define=__x86_64__ ")" ${empty_cxx} "-###")
211castxml_test_cmd(cc-gnu-std-c++98 --castxml-cc-gnu "(" $<TARGET_FILE:cc-gnu>              -ansi ")" ${empty_cxx} "-###")
212castxml_test_cmd(cc-gnu-std-c++11 --castxml-cc-gnu "(" $<TARGET_FILE:cc-gnu> -std=201103L -ansi ")" ${empty_cxx} "-###")
213castxml_test_cmd(cc-gnu-std-c++14 --castxml-cc-gnu "(" $<TARGET_FILE:cc-gnu> -std=201402L -ansi ")" ${empty_cxx} "-###")
214castxml_test_cmd(cc-gnu-std-gnu++98 --castxml-cc-gnu "(" $<TARGET_FILE:cc-gnu>              ")" ${empty_cxx} "-###")
215castxml_test_cmd(cc-gnu-std-gnu++11 --castxml-cc-gnu "(" $<TARGET_FILE:cc-gnu> -std=201103L ")" ${empty_cxx} "-###")
216castxml_test_cmd(cc-gnu-std-gnu++14 --castxml-cc-gnu "(" $<TARGET_FILE:cc-gnu> -std=201402L ")" ${empty_cxx} "-###")
217castxml_test_cmd(cc-gnu-std-explicit --castxml-cc-gnu "(" $<TARGET_FILE:cc-gnu> -std=199901L ")" -std=c++14 ${empty_cxx} "-###")
218castxml_test_cmd(cc-gnu-c-bad-cmd --castxml-cc-gnu-c "(" cc-gnu-c-bad-cmd ")" ${empty_c})
219castxml_test_cmd(cc-gnu-c-src-c-E --castxml-cc-gnu-c $<TARGET_FILE:cc-gnu> ${empty_c} -E -dM)
220castxml_test_cmd(cc-gnu-c-src-c-cmd --castxml-cc-gnu-c $<TARGET_FILE:cc-gnu> ${empty_c} "-###")
221castxml_test_cmd(cc-gnu-c-std-c89 --castxml-cc-gnu-c "(" $<TARGET_FILE:cc-gnu>              -ansi ")" ${empty_c} "-###")
222castxml_test_cmd(cc-gnu-c-std-c99 --castxml-cc-gnu-c "(" $<TARGET_FILE:cc-gnu> -std=199901L -ansi ")" ${empty_c} "-###")
223castxml_test_cmd(cc-gnu-c-std-c11 --castxml-cc-gnu-c "(" $<TARGET_FILE:cc-gnu> -std=201112L -ansi ")" ${empty_c} "-###")
224castxml_test_cmd(cc-gnu-c-std-gnu89 --castxml-cc-gnu-c "(" $<TARGET_FILE:cc-gnu>              ")" ${empty_c} "-###")
225castxml_test_cmd(cc-gnu-c-std-gnu99 --castxml-cc-gnu-c "(" $<TARGET_FILE:cc-gnu> -std=199901L ")" ${empty_c} "-###")
226castxml_test_cmd(cc-gnu-c-std-gnu11 --castxml-cc-gnu-c "(" $<TARGET_FILE:cc-gnu> -std=201112L ")" ${empty_c} "-###")
227
228# Test --castxml-cc-msvc detection.
229add_executable(cc-msvc cc-msvc.c)
230set(castxml_test_cmd_extra_arguments "-Dprologue=${CMAKE_CURRENT_SOURCE_DIR}/cc-msvc.cmake")
231castxml_test_cmd(cc-msvc-bad-cmd --castxml-cc-msvc cc-msvc-bad-cmd ${empty_cxx})
232castxml_test_cmd(cc-msvc-src-c-E --castxml-cc-msvc $<TARGET_FILE:cc-msvc> ${empty_c} -E -dM)
233castxml_test_cmd(cc-msvc-src-cxx-E --castxml-cc-msvc $<TARGET_FILE:cc-msvc> ${empty_cxx} -E -dM)
234castxml_test_cmd(cc-msvc-src-cxx-cmd --castxml-cc-msvc $<TARGET_FILE:cc-msvc> ${empty_cxx} "-###")
235castxml_test_cmd(cc-msvc-tgt-amd64 --castxml-cc-msvc "(" $<TARGET_FILE:cc-msvc> --cc-define=_M_AMD64 ")" ${empty_cxx} "-###")
236castxml_test_cmd(cc-msvc-tgt-explicit --castxml-cc-msvc "(" $<TARGET_FILE:cc-msvc> ")" -target explicit-target-triple ${empty_cxx} "-###")
237castxml_test_cmd(cc-msvc-tgt-i386 --castxml-cc-msvc "(" $<TARGET_FILE:cc-msvc> --cc-define=_M_IX86 ")" ${empty_cxx} "-###")
238castxml_test_cmd(cc-msvc-tgt-win --castxml-cc-msvc "(" $<TARGET_FILE:cc-msvc> --cc-define=_WIN32 ")" ${empty_cxx} "-###")
239castxml_test_cmd(cc-msvc-tgt-x86_64 --castxml-cc-msvc "(" $<TARGET_FILE:cc-msvc> --cc-define=_M_X64 ")" ${empty_cxx} "-###")
240castxml_test_cmd(cc-msvc-std-c++98 --castxml-cc-msvc "(" $<TARGET_FILE:cc-msvc> -msc=1500 ")" ${empty_cxx} "-###")
241castxml_test_cmd(cc-msvc-std-c++11 --castxml-cc-msvc "(" $<TARGET_FILE:cc-msvc> -msc=1600 ")" ${empty_cxx} "-###")
242castxml_test_cmd(cc-msvc-std-c++14 --castxml-cc-msvc "(" $<TARGET_FILE:cc-msvc> -msc=1900 ")" ${empty_cxx} "-###")
243castxml_test_cmd(cc-msvc-std-explicit --castxml-cc-msvc "(" $<TARGET_FILE:cc-msvc> -msc=1500 ")" -std=gnu++14 ${empty_cxx} "-###")
244castxml_test_cmd(cc-msvc-c-bad-cmd --castxml-cc-msvc-c "(" cc-msvc-c-bad-cmd ")" ${empty_c})
245castxml_test_cmd(cc-msvc-c-src-c-E --castxml-cc-msvc-c $<TARGET_FILE:cc-msvc> ${empty_c} -E -dM)
246castxml_test_cmd(cc-msvc-c-src-c-cmd --castxml-cc-msvc-c $<TARGET_FILE:cc-msvc> ${empty_c} "-###")
247castxml_test_cmd(cc-msvc-c-std-c89 --castxml-cc-msvc-c "(" $<TARGET_FILE:cc-msvc> ")" ${empty_c} "-###")
248unset(castxml_test_cmd_extra_arguments)
249
250castxml_test_gccxml(ArrayType)
251castxml_test_gccxml(ArrayType-incomplete)
252castxml_test_gccxml(Class)
253castxml_test_gccxml(Class-abstract)
254castxml_test_gccxml(Class-annotate)
255castxml_test_gccxml(Class-base-offset)
256castxml_test_gccxml(Class-base-typedef)
257castxml_test_gccxml(Class-bases)
258castxml_test_gccxml(Class-forward)
259castxml_test_gccxml(Class-friends)
260castxml_test_gccxml(Class-implicit-member-access)
261castxml_test_gccxml(Class-implicit-member-access-mutable)
262castxml_test_gccxml(Class-implicit-member-array)
263castxml_test_gccxml(Class-implicit-member-bad-base)
264castxml_test_gccxml(Class-implicit-member-const)
265castxml_test_gccxml(Class-implicit-member-reference)
266castxml_test_gccxml(Class-implicit-members)
267castxml_test_gccxml(Class-incomplete)
268castxml_test_gccxml(Class-incomplete-twice)
269castxml_test_gccxml(Class-member-template)
270castxml_test_gccxml(Class-partial-template-member-Typedef)
271castxml_test_gccxml(Class-template)
272castxml_test_gccxml(Class-template-Method-Argument-const)
273castxml_test_gccxml(Class-template-Method-Argument-default)
274castxml_test_gccxml(Class-template-Method-return-const)
275castxml_test_gccxml(Class-template-bases)
276castxml_test_gccxml(Class-template-constructor-template)
277castxml_test_gccxml(Class-template-friends)
278castxml_test_gccxml(Class-template-member-Typedef)
279castxml_test_gccxml(Class-template-member-Typedef-const)
280castxml_test_gccxml(Class-template-member-template)
281castxml_test_gccxml(Constructor)
282castxml_test_gccxml(Constructor-annotate)
283castxml_test_gccxml(Converter)
284castxml_test_gccxml(Converter-annotate)
285castxml_test_gccxml(CvQualifiedType)
286castxml_test_gccxml(Destructor)
287castxml_test_gccxml(Destructor-annotate)
288castxml_test_gccxml(Enumeration)
289castxml_test_gccxml(Enumeration-annotate)
290castxml_test_gccxml(Enumeration-anonymous)
291castxml_test_gccxml(Field)
292castxml_test_gccxml(Field-annotate)
293castxml_test_gccxml(Function)
294castxml_test_gccxml(Function-annotate)
295castxml_test_gccxml(Function-Argument-annotate)
296castxml_test_gccxml(Function-Argument-decay)
297castxml_test_gccxml(Function-Argument-default)
298castxml_test_gccxml(Function-rvalue-reference)
299castxml_test_gccxml(Function-template)
300castxml_test_gccxml(Function-throw)
301castxml_test_gccxml(Function-variadic)
302castxml_test_gccxml(FunctionType)
303castxml_test_gccxml(FunctionType-variadic)
304castxml_test_gccxml(FundamentalType)
305castxml_test_gccxml(FundamentalTypes)
306castxml_test_gccxml(Method)
307castxml_test_gccxml(Method-annotate)
308castxml_test_gccxml(Method-overrides)
309castxml_test_gccxml(Method-rvalue-reference)
310castxml_test_gccxml(MethodType)
311castxml_test_gccxml(MethodType-cv)
312castxml_test_gccxml(Namespace)
313castxml_test_gccxml(Namespace-anonymous)
314castxml_test_gccxml(Namespace-Class-members)
315castxml_test_gccxml(Namespace-Class-partial-template-members)
316castxml_test_gccxml(Namespace-Class-template-members)
317castxml_test_gccxml(Namespace-Function-template-members)
318castxml_test_gccxml(Namespace-empty)
319castxml_test_gccxml(Namespace-extern-C-members)
320castxml_test_gccxml(Namespace-inline)
321castxml_test_gccxml(Namespace-inline-start)
322castxml_test_gccxml(Namespace-inline-template)
323castxml_test_gccxml(Namespace-nested)
324castxml_test_gccxml(Namespace-repeat)
325castxml_test_gccxml(Namespace-repeat-start)
326castxml_test_gccxml(OffsetType)
327castxml_test_gccxml(OffsetType-cv)
328castxml_test_gccxml(OperatorFunction)
329castxml_test_gccxml(OperatorFunction-annotate)
330castxml_test_gccxml(OperatorMethod)
331castxml_test_gccxml(OperatorMethod-annotate)
332castxml_test_gccxml(PointerType)
333castxml_test_gccxml(ReferenceType)
334castxml_test_gccxml(RValueReferenceType)
335castxml_test_gccxml(TypeAlias)
336castxml_test_gccxml(TypeAliasTemplate)
337castxml_test_gccxml(Typedef-annotate)
338castxml_test_gccxml(Typedef-paren)
339castxml_test_gccxml(Typedef-to-Class-template)
340castxml_test_gccxml(Typedef-to-Enumeration)
341castxml_test_gccxml(Typedef-to-Enumeration-anonymous)
342castxml_test_gccxml(Typedef-to-FundamentalType-mode)
343castxml_test_gccxml(Typedef-to-extern-C-FundamentalType-mode)
344castxml_test_gccxml(Variable)
345castxml_test_gccxml(Variable-annotate)
346castxml_test_gccxml(Variable-in-Class)
347castxml_test_gccxml(Variable-init)
348
349# Test multiple start declarations.
350set(castxml_test_gccxml_custom_input Namespace-nested)
351set(castxml_test_gccxml_custom_start --castxml-start start::ns1,start::ns3)
352castxml_test_gccxml(Namespace-nested-1)
353set(castxml_test_gccxml_custom_start --castxml-start start::ns1 --castxml-start start::ns3)
354castxml_test_gccxml(Namespace-nested-2)
355unset(castxml_test_gccxml_custom_start)
356unset(castxml_test_gccxml_custom_input)
357
358castxml_test_gccxml(invalid-decl-for-type)
359castxml_test_gccxml(qualified-type-name)
360castxml_test_gccxml(using-declaration-class)
361castxml_test_gccxml(using-declaration-ns)
362castxml_test_gccxml(using-declaration-start)
363castxml_test_gccxml(using-directive-ns)
364castxml_test_gccxml(using-directive-start)
365
366if(";${LLVM_TARGETS_TO_BUILD};" MATCHES ";X86;")
367  set(castxml_test_gccxml_extra_arguments -target i386-pc-windows-msvc)
368  castxml_test_gccxml(Function-calling-convention-ms)
369  castxml_test_gccxml(Function-calling-convention-ms-annotate)
370  castxml_test_gccxml(implicit-decl-ms)
371  castxml_test_gccxml(inline-asm-ms)
372  unset(castxml_test_gccxml_extra_arguments)
373endif()
374
375castxml_test_gccxml_c(FunctionNoProto)
376castxml_test_gccxml_c(FundamentalType)
377castxml_test_gccxml_c(Typedef-called-class)
378
379castxml_test_gccxml_c(invalid)
380
381castxml_test_gccxml_broken(ReferenceType-to-Class-template)
382
383set(castxml_test_gccxml_extra_arguments --castxml-cc-gnu-c "(" $<TARGET_FILE:cc-gnu> --cc-define=__x86_64__ ")")
384castxml_test_gccxml_c(GNU-float128)
385set(castxml_test_gccxml_custom_input GNU-float128)
386set(castxml_test_gccxml_custom_start "")
387castxml_test_gccxml_c(GNU-float128-nostart)
388unset(castxml_test_gccxml_custom_start)
389unset(castxml_test_gccxml_custom_input)
390unset(castxml_test_gccxml_extra_arguments)
391
392set(castxml_test_gccxml_extra_arguments --castxml-cc-gnu "(" $<TARGET_FILE:cc-gnu> --cc-define=__x86_64__ ")")
393castxml_test_gccxml(GNU-float128)
394set(castxml_test_gccxml_custom_input GNU-float128)
395set(castxml_test_gccxml_custom_start "")
396castxml_test_gccxml(GNU-float128-nostart)
397unset(castxml_test_gccxml_custom_start)
398unset(castxml_test_gccxml_custom_input)
399unset(castxml_test_gccxml_extra_arguments)
400
401set(castxml_test_gccxml_extra_arguments --castxml-cc-gnu-c $<TARGET_FILE:cc-gnu>)
402castxml_test_gccxml_c(GNU-va_arg_pack)
403unset(castxml_test_gccxml_extra_arguments)
404
405set(castxml_test_gccxml_extra_arguments --castxml-cc-gnu $<TARGET_FILE:cc-gnu>)
406castxml_test_gccxml(GNU-va_arg_pack)
407unset(castxml_test_gccxml_extra_arguments)
Note: See TracBrowser for help on using the repository browser.