dmd/compiler/test/compilable
drpriver 856d4921a0 Fix #21271 - ImportC: incorrect compatibility macro for __pragma
Fixes https://github.com/dlang/dmd/issues/21271

Redefine the compatibility macro in terms of C99's `_Pragma()`
instead of ignoring it. Clang and GCC will replace `_Pragma()`
with `#pragma` directives in the preprocessed output, while
cl.exe will actually convert it back to `__pragma()`.

This is still a better situation than before as ImportC partially
supports `__pragma()`.
2025-04-19 18:37:13 +08:00
..
extra-files Fix #21105: Is-expressions should not generate unnecessary code for lowerings (#21106) 2025-03-29 08:36:10 +08:00
imports Fix #20499 - [ImportC] typedef struct with name as a pointer cannot be used with struct name (#21232) 2025-04-15 15:31:21 +08:00
protection
99bottles.d
a3682.d
aggr_alignment.d
aliasassign.d
aliasdecl.d
alignas.c ImportC: allow _Alignof expression (#21181) 2025-04-10 07:20:50 +08:00
aligndefault.d Fixes #20587 - Add align(default) (#20589) 2024-12-30 13:02:14 +08:00
alignment.d
always_inline.i
arraytopointer.c
art4769.d
atomic_loadstore_shared_classes.d Fix bugzilla issue 24846 - atomicLoad does not work for class arguments with -preview=nosharedaccess 2024-11-11 05:39:57 +08:00
b33.d
b1215.d
b6227.d
b6395.d
b9490.d
b11118.d
b12001.d
b12504.d
b15206.d
b15428.d
b16244.d
b16346.d
b16355.d
b16382.d
b16483.d
b16598.d
b16697.d
b16976.d feat(errors): enable verrors=context globally (#20576) 2025-01-03 05:17:59 +08:00
b17111.d
b17651.d
b18197.d
b18242.d
b18489.d
b19002.d
b19294.d
b19432.d
b19442.d
b19775.d
b19829.d
b20045.d
b20067.d
b20243.d Fix bugzilla issue 20243 - inout not substituted for in associative array key type 2024-05-26 22:29:41 +02:00
b20758.d
b20780.d
b20833.d
b20885.d
b20938.d
b21285.d
b23620.d
backendfloatoptim.d
betterc.d
betterCarray.d
betterCinline.d Fix bugzilla issue 24153 - Inliner breaks -betterC by requiring TypeInfo (#17049) 2024-11-03 15:35:32 +08:00
betterCswitch.d
bug6963.d
bug11735.d Fix #20894 (#20895) 2025-02-19 13:42:21 +08:00
bug20796.d
bug21196.d
callconv.d
casmmangling.d
casttuple.d
cattributes.i
ccompile.d
cdcmp.d
cet_disabled.d
cet_ibt.d
checkaction-context-assert-0.d
checkimports3.d
chkformat.d feat(errors): enable verrors=context globally (#20576) 2025-01-03 05:17:59 +08:00
cimport.c
cimports2.i
cmain.d
commontype.d
compile1.d feat(errors): enable verrors=context globally (#20576) 2025-01-03 05:17:59 +08:00
const.d
copyCtor2.d build default move constructors (#20634) 2025-01-10 11:19:29 -08:00
covariant_override.d
cpp_abi_tag_unused.d
cppflags.c
cppmangle.d fix #20686 infer attributes for generated functions 2025-01-12 19:29:12 +08:00
cppmangle2.d
cppmangle3.d Fix bugzilla issue 24623 followup. 2024-06-30 13:45:31 +02:00
cppmangle_abitag.d
ctests1.c
ctests2.c
ctfe_math.d
ctfesimd.d
ctod.i fix #20912 lexing problem with #define // comments (#20914) 2025-02-25 17:34:19 +08:00
cvariadic.i
d_ident_c99.d
dbitfield.d
ddoc1.d
ddoc2.d
ddoc3.d
ddoc4.d
ddoc5.d
ddoc6.d
ddoc7.d
ddoc8.d
ddoc9.d
ddoc10.d
ddoc11.d
ddoc13.d
ddoc14.d
ddoc198.d
ddoc648.d
ddoc2273.d
ddoc4162.d
ddoc4899.d feat(errors): enable verrors=context globally (#20576) 2025-01-03 05:17:59 +08:00
ddoc5446.d
ddoc5446a.d
ddoc5446b.d
ddoc6491.d
ddoc7555.d
ddoc7656.d
ddoc7715.d
ddoc7795.d
ddoc8271.d
ddoc8739.d
ddoc9037.d
ddoc9155.d
ddoc9305.d
ddoc9369.d
ddoc9475.d
ddoc9497a.d
ddoc9497b.d
ddoc9497c.d
ddoc9497d.d
ddoc9676a.d
ddoc9676b.d
ddoc9727.d
ddoc9764.sh
ddoc9789.d
ddoc9903.d
ddoc10236.d feat(errors): enable verrors=context globally (#20576) 2025-01-03 05:17:59 +08:00
ddoc10236b.d feat(errors): enable verrors=context globally (#20576) 2025-01-03 05:17:59 +08:00
ddoc10325.d
ddoc10334.d
ddoc10366.d
ddoc10367.d
ddoc10869.d
ddoc10870.d
ddoc11479.d
ddoc11511.d
ddoc11823.d
ddoc12706.d
ddoc12745.d
ddoc13270.d
ddoc13502.d feat(errors): enable verrors=context globally (#20576) 2025-01-03 05:17:59 +08:00
ddoc13645.d
ddoc14383.d
ddoc14413.d
ddoc14633.d
ddoc14778.d
ddoc15475.d
ddoc17697.d
ddoc18361.d
ddoc19814.d
ddoc24871.d Update compiler/test/compilable/ddoc24871.d 2024-11-22 15:17:09 +01:00
ddoc_bom_UTF8.d
ddoc_markdown_breaks.d
ddoc_markdown_code.d
ddoc_markdown_emphasis.d
ddoc_markdown_escapes.d
ddoc_markdown_headings.d
ddoc_markdown_links.d
ddoc_markdown_lists.d
ddoc_markdown_quote.d
ddoc_markdown_tables.d
ddoc_markdown_tables_22285.d
ddocbackticks.d
ddocunittest.d
ddocYear.d
debug_statement_attributes.d Fix bypassing nothrow in debug statements (#20720) 2025-01-17 01:50:17 +01:00
debugInference.d
debuginfo.d
defa.d
depmsg.d feat(errors): enable verrors=context globally (#20576) 2025-01-03 05:17:59 +08:00
deprecate14283.d
deprecated_override.d feat(errors): enable verrors=context globally (#20576) 2025-01-03 05:17:59 +08:00
deprecatedinref.d
deprecationlimit.d feat(errors): enable verrors=context globally (#20576) 2025-01-03 05:17:59 +08:00
depsOutput21238_foo.d
derivedarray.d
diag3243.d
diag11066.d
diag12598.d
diag20916.d feat(errors): enable verrors=context globally (#20576) 2025-01-03 05:17:59 +08:00
dip22.d
dip22d.d
disable_new.d
dlangui_crash.d
dmdcliflags.sh feat(errors): implement verrors=simple to skip context printing (#20566) 2024-12-18 11:53:37 +08:00
dtoh_21217.d
dtoh_AliasDeclaration.d
dtoh_AliasDeclaration_98.d
dtoh_AnonDeclaration.d
dtoh_ClassDeclaration.d
dtoh_cpp98_compat.d
dtoh_CPPNamespaceDeclaration.d
dtoh_enum.d
dtoh_enum_cpp98.d
dtoh_expressions.d
dtoh_extern_type.d
dtoh_forwarding.d
dtoh_functions.d
dtoh_ignored.d
dtoh_invalid_identifiers.d feat(errors): enable verrors=context globally (#20576) 2025-01-03 05:17:59 +08:00
dtoh_mangling.d
dtoh_names.d
dtoh_protection.d
dtoh_required_symbols.d
dtoh_special_enum.d
dtoh_StructDeclaration.d
dtoh_TemplateDeclaration.d
dtoh_UnionDeclaration.d
dtoh_unittest_block.d
dtoh_VarDeclaration.d
dtoh_verbose.d
dtoh_windows.d
dtorfields.d
empty_file.d
emptygenmain.d
emptystatement.d
enumbase.c
enumbasearithmetic.d
exception.d
fail137.d
fail260.d
fieldwise.d
filefullpath_18911.d
fix13165.d
fix17123.d
fix17145.d
fix17335.d
fix17635.d
fix17686.d
fix20416.d
fix21585.d
fix21647.d
fix21684.d
fix22180.d
fix22291.d
fix24187.c
forward1.d
ftimetrace.d Add --ftime-trace to dmd (#16363) 2024-07-29 14:48:03 +02:00
futurexf.d
fwdref21063.d
header18364.d
header18365.d [.di generation] Show TypeCtor method attributes after parameters (#16732) 2024-07-20 16:01:45 +02:00
iasm_labeloperand.d
ice854.d
ice1524.d
ice6538.d
ice8392.d
ice9663.d
ice10040.d
ice10431a.d
ice10431b.d
ice10486.d
ice10770.d
ice11054.d
ice11300.d
ice11596.d
ice11610.d
ice11777.d
ice11906.d
ice12002.d
ice12554.d
ice12956.d
ice13071.d
ice13088.d
ice13245.d
ice13323.d
ice13403.d
ice13792.d
ice13819.d
ice13874.d
ice13886.d
ice13920.d
ice13968.d
ice14075.d
ice14739.d
ice15333.d
ice15760.d
ice15789.d
ice15992.d
ice20044.d
ice20092.d
ice20415.d
iconv_class_array.d
ident_all.c Revise remaining 32{omf,mscoff} usages 2024-05-25 16:35:11 +02:00
ident_all.d
ident_c11.c Revise remaining 32{omf,mscoff} usages 2024-05-25 16:35:11 +02:00
ident_c11.d
ident_c99.c
ident_UAX31.c Revise remaining 32{omf,mscoff} usages 2024-05-25 16:35:11 +02:00
ident_UAX31.d
implicitconv.d
import_exp.d Rebase stable6 (#16967) 2024-10-07 12:00:14 +03:00
importtests.d
include_unittest.d
infer_stc.d
inliner.d
inliner2.d
interpret3.d Disallow initializing fields with themself (#20696) 2025-01-21 05:49:24 +08:00
interpret4.d
interpret5.d
isexpalias.d
isreturnonstack.d
issue9884.d
issue12520.d
issue15478.d
issue15574.sh
issue15795.d
issue15818.d
issue16020.d
issue16044.d
issue16472.d
issue17167.sh Get rid of some obsolete optlink workarounds 2024-05-25 18:07:16 +02:00
issue18097.d
issue19243.sh
issue19724.sh
issue19925.d
issue20339.d
issue20362.d
issue20599.d
issue20618.d
issue20704.d
issue20705.d
issue20915.d
issue20995.d
issue21203.d Fix bugzilla issue 24623 followup. 2024-06-30 13:45:31 +02:00
issue21328.d
issue21340.d Fix bugzilla issue 24623 followup. 2024-06-30 13:45:31 +02:00
issue21378.d
issue21390.d
issue21614.d
issue21662.d
issue21726.d
issue21813a.d
issue21813b.d
issue21880.d
issue21882.d
issue21905.d
issue22130.d
issue22646.d
issue22682.d
issue22854.d
issue22975.d
issue23391.d
issue23567.d
issue23597.d
issue24018.d
issue24174.d
issue24316.d
issue24399.d
issue24409.d
issue24566.d Fix bugzilla issue 24566 - condition that starts with runtime value and uses compile time array does not short circuit 2024-06-10 10:21:40 +02:00
issue24830.sh dsymbolsem/InstMemberWalker: also visit generated structs' members 2024-10-24 00:40:15 +02:00
isZeroInit.d Fix checking first member of union after zero size field 2024-10-05 08:56:44 +08:00
json.d
json2.d
json20742.d
json_nosource.sh
jsonc.i Fix bugzilla 24670 - importC: .di generation does not place parentheses around const struct return types 2024-07-22 00:44:01 +02:00
jsonCompilerInfo.d
jsonNoOutFile.d
jsonStdout.d
line.d
makedeps_exe.d
makedeps_file.d
makedeps_lib.d
makedeps_obj.d
minimal.d
minimal2.d
minimal3.d
mixin.d
mixintempl.d
mixinTemplateMangling.d
mixintype.d
mixintype2.d
must_use_assign.d
must_use_initialize.d
must_use_not_reserved.d
must_use_opassign.d
must_use_opopassign.d
must_use_opunary.d
must_use_suppress.d
named_argumens_struct.d
named_arguments.d
named_arguments_auto_ref.d
named_arguments_ifti.d
needsmod.d
needsmods.d
needspkg.d
needspkgmod.d
nested_struct_20499.c Fix #20499 - [ImportC] typedef struct with name as a pointer cannot be used with struct name (#21232) 2025-04-15 15:31:21 +08:00
nested_template_constraints.d
nestedtempl0.d
nestedtempl1.d
noderef.d
nogc.d Make delete an identifier instead of keyword (#20745) 2025-01-21 23:33:50 +01:00
noreturn.c
noreturn1.d
noreturn3.d
noreturn_main.d
ob1.d
ob2.d
objc_class.d
objc_gfunc.d
objc_interface_final_19654.d
obsolete_body.d
paranoia_ctfe.d
parens_inc.d
placementnew.d add Placement New 2025-03-03 16:23:02 +10:00
posixbitfields.c
pr9374.d
pr9383.d
pr9471.d
pragmainline2.d feat(errors): enable verrors=context globally (#20576) 2025-01-03 05:17:59 +08:00
pragmapack.c Fix #21189 - wrong/missing error line when source file isn't regular (#21190) 2025-04-10 07:19:58 +08:00
previewall.d
previewhelp.d Revert "Enable -preview=fieldwise by default" 2025-01-09 13:38:03 -05:00
previewin.d
protattr.d
protection.d
pull6815.d
quadratic.d
rdeps7016.d
README.md
readmodify_structclass.d
reinterpretctfe.d
returnscope_without_safe.d
revert_dip1000.d
reverthelp.d Revert "Enable -preview=fieldwise by default" 2025-01-09 13:38:03 -05:00
riia_ctor.d
rvalue2.d add __rvalue(expression) builtin (#17050) 2024-12-15 12:13:28 -08:00
rvalueref.d Fix bugzilla 24883 - Speculative template overload error escapes with -preview=rvaluerefparam 2024-11-29 08:36:13 +01:00
sarif_success_test.d feat(errors): consolidate multiple sarif reports into a single report 2024-11-11 14:38:46 +08:00
scope.d escape.d: Consolidate notMaybeScope and doNotInferScope 2024-07-31 15:31:38 +02:00
scope_infer_array_assign.d
scope_tuple_expansion.d
scopeinfer.d
segfaultgolf.d
shared.d
shared_destructor.d
sharedopt.d
shortened_methods.d Don't allow short constructor with non-void expression except this() and super() (#17489) 2024-12-08 17:21:42 +08:00
sroa.d
staticforeach.d Rebase stable6 (#16967) 2024-10-07 12:00:14 +03:00
statictemplatethis.d
stc_traits.d
stdcheaders.c ImportC: undefined identifier _Float16 (#21184) 2025-04-09 14:05:05 +08:00
struct_decls_20499.c Fix #20499 - [ImportC] typedef struct with name as a pointer cannot be used with struct name (#21232) 2025-04-15 15:31:21 +08:00
sw_transition_complex.d feat(errors): enable verrors=context globally (#20576) 2025-01-03 05:17:59 +08:00
sw_transition_field.d
sw_transition_tls.d
test1.d
test25.d
test50.d
test55.d
test59.d
test61.d
test62.d
test63.d
test66.d
test67.d
test68.d
test69.d
test70.d
test71.d
test72.d
test313a.d
test313b.d
test313c.d
test313d.d
test313e.d
test313f.d
test313g.d
test314.d
test318.d
test324.d feat(errors): enable verrors=context globally (#20576) 2025-01-03 05:17:59 +08:00
test602.d
test930.d
test1170.d
test1238.d
test1353.d
test1537.d
test1547.d
test1673.d
test1754.d
test1878a.d
test2991.d
test3004.d
test3543.d
test3673.d
test3775.d
test4003.d
test4090.d
test4364.d
test4375.d
test5227.d
test5973.d
test6013.d
test6056a.d
test6056b.d
test6056c.d
test6089.d
test6319.d
test6395.d
test6461.sh
test6534.d
test6541.d
test6552.d
test6777.d
test6999.d
test7065.d
test7172.d
test7190.d
test7252.d
test7399.d
test7491.d
test7524.d
test7569.d
test7754.d
test7815.d
test7886.d
test8038.d
test8041.d
test8296.d
test8509.d
test8513.d
test8543.d
test8631.d
test8675.d
test8696.d
test8717.d
test8802.d
test8898.d
test8922a.d
test8922b.d
test8922c.d
test8922d.d
test8922e.d
test8922f.d
test8937.d
test8959.d
test9029.d
test9057.d
test9209.d
test9274.d
test9276.d
test9278a.d
test9278b.d
test9399.d
test9434.d
test9435.d
test9436.d
test9526.d
test9554.d
test9565.d
test9570.d
test9613.d
test9639.d
test9672.d
test9680.sh
test9692.d
test9692a.d
test9701.d feat(errors): enable verrors=context globally (#20576) 2025-01-03 05:17:59 +08:00
test9766.d
test9818.d
test9919.d
test10028.d
test10056.d
test10066.d
test10073.d
test10186.d
test10312.d
test10375.d
test10520.d
test10695.d
test10726.d
test10752.d
test10981.d
test10992.d
test10992b.d
test10993.d
test11137.d
test11169.d
test11225a.d
test11259.d
test11371.d
test11559upgradeoptlink.d Get rid of some obsolete optlink workarounds 2024-05-25 18:07:16 +02:00
test11563.d
test11656.d
test11720.d
test11824.d
test11847.d
test11914.d
test11980.d
test12009.d
test12496.d
test12511.d
test12523.d
test12527.d
test12567a.d
test12567b.d
test12567c.d feat(errors): enable verrors=context globally (#20576) 2025-01-03 05:17:59 +08:00
test12567d.d
test12567e.d
test12593.d
test12624.d
test12807.d
test12967.d
test12979a.d
test12979b.d
test13008.d
test13053.d
test13123.d
test13193.d
test13194.d
test13226.d
test13242.d
test13281.d
test13512.d
test13582a.d
test13582b.d
test13600.d
test13668.d
test13858.d
test13902.d
test13953.d
test14114.d
test14198.d
test14275.d
test14317.d
test14375.d
test14528.d
test14666.d
test14740.d
test14747.d
test14781.d
test14831.d
test14838.d
test14894.sh
test14929.d
test14954.d
test14962.d
test14973.d
test15019.d
test15056.d
test15150.d
test15225.d
test15292.d
test15326.d
test15371.d
test15389_x.d
test15389_y.d
test15402.d
test15464.d
test15490.d
test15519_x.d
test15519_y.d
test15550.d
test15565.d
test15578.d
test15618.d
test15668.d
test15711.d
test15712.d
test15762.d
test15780.d
test15784.d
test15785.d
test15802.d
test15856.d
test15898.d
test15907.d
test16002.d
test16013a.d
test16013b.d
test16031.d
test16037.d
test16080.d
test16083.d
test16085.d
test16107.d
test16183.d
Test16206.d
test16213.d
test16214a.d
test16225.d
test16273.d
test16292.d
test16303.d
test16340.d
test16348.d
test16460.d
test16495.d
test16525.d
test16540.d
test16563.d
test16570.d
test16572.d
test16574.d
test16578a.d
test16578b.d
test16607.d
test16621.d
test16627.d
test16635.d
test16657.d
test16685.d
test16701.d
test16709.d
test16747.d
test16776.d Fix bugzilla issue 24669 - Make -i work with C modules (#16776) 2024-08-11 19:34:17 +08:00
test16798.d
test17057.d
test17059.d
test17130.d
test17143.d
test17146.d
test17168.d
test17215.d
test17339.d
test17349.d
test17351.d
test17352.d
test17373.d
test17399.d
test17419.d
test17421.d
test17434.d
test17434a.d
test17441.d
test17468.d
test17512.d
test17541.d
test17545.d
test17548.d
test17590.d
test17752.d
test17782.d
test17791.d
test17793.d
test17807.d
test17819.d
test17853.d
test17870.d
test17908.d
test17942.d
test17970.d
test17991.d
test18000.d
test18020.d
test18026.d
test18030.d
test18099.d
test18115.d
test18127.d Fix 18127 - ImportC: redeclaration of struct in different translation unit doesn’t check compatibility (#21224) 2025-04-14 14:35:20 +08:00
test18199.d
test18216.d
test18251.d
test18367.sh
test18385b.d
test18430.d
test18468.d
test18474.d
test18493.d
test18572.d
test18578.d
test18584.d
test18645.d
test18646.d
test18651a.d
test18670.d
test18694.d
test18737.d
test18771.d
test18775.d
test18821.d
test18871.d
test18905.d
test18936.d
test18951a.d
test18951b.d
test18955.d Get rid of obsolete CRuntime_DigitalMars special cases 2024-05-25 15:17:31 +02:00
test18976.d
test19014.d
test19066.d
test19081.d
test19097.d
test19108.d
test19145.d
test19187.d
test19203.d
test19224.d
test19227.d feat(errors): enable verrors=context globally (#20576) 2025-01-03 05:17:59 +08:00
test19266.sh
test19268.d
test19292.d
test19295.d
test19315.d
test19320.d
test19376.sh
test19409.d
test19463.sh
test19464.d
test19482.d
test19491.d
test19499.d
test19519.d
test19540.d
test19557.d
test19574.d
test19585.d
test19609.d feat(errors): enable verrors=context globally (#20576) 2025-01-03 05:17:59 +08:00
test19631.d
test19652.d
test19656.d
test19657a.d
test19688.d
test19713.d
test19728.d
test19731.d
test19746.d
test19750.d
test19754.d
test19778.d
test19804.d
test19809.d
test19833.d
test19840.d
test19873.d
test19895.d
test19912.d
test19936.d
test19941.d
test19954.d
test19970.d
test20000.d
test20008.d
test20021.d
test20039.d
test20051.d
test20063.d feat(errors): enable verrors=context globally (#20576) 2025-01-03 05:17:59 +08:00
test20065.d
test20100.d
test20136.d
test20138.d
test20151a.d
test20181.d
test20201.d
test20236.d
test20280.d
test20296.d
test20318.d
test20326.d
test20344.d Fix 20334: ImportC: enums created from string literal #defines don’t implicitly convert to const(char)* in D. (#21193) 2025-04-11 05:08:10 +08:00
test20367.d
test20388.d
test20406.d
test20410.d
test20417.d
test20420.d
test20423.c ImportC: va_arg fails in working C code (#21186) 2025-04-11 05:10:31 +08:00
test20427.d
test20472.c ImportC: can't access members in static array (#21185) 2025-04-09 17:58:14 +08:00
test20488.d
test20499.d Fix #20499 - [ImportC] typedef struct with name as a pointer cannot be used with struct name (#21232) 2025-04-15 15:31:21 +08:00
test20502.c Fix #20502 - importc: macro conflicts with struct of same name (#21234) 2025-04-16 07:27:33 +08:00
test20530.d
test20537.d
test20596.d
test20653.d
test20656.d
test20661.d
test20692.d
test20695.d
test20710.d
test20717.d
test20744.d
test20789.d
test20795.d
test20821.d
test20832.d
test20835.d
test20842.d
test20860.d
test20868.d
test20894.d
test20906.d
test20909.d
test20923.d
test20958.d
test20963.c Fix #20499 - [ImportC] typedef struct with name as a pointer cannot be used with struct name (#21232) 2025-04-15 15:31:21 +08:00
test20990.d
test21050.d
test21058.d
test21073.d
test21098.d Fix #21098 (#21132) 2025-04-02 07:42:03 +08:00
test21150.c ImportC: Fix interaction of aligned and packed structs (#21204) 2025-04-13 06:55:56 +08:00
test21153.d fix #21153 - [REG 2.111.0] Infinite loop in isAliasThisTuple (#21154) 2025-04-06 07:31:30 +08:00
test21177.d Fix #20929 - #line directives mess up -verrors=context (#20930) 2025-02-28 23:47:26 +01:00
test21179.d Fix #21179 - Failure to convert const(T) to T after type is used in cast() (#21201) 2025-04-11 05:05:48 +08:00
test21196.d
test21197.d
test21225.c Fix 21225: ImportC: macro interpreted as an enum conflicts with function (#21228) 2025-04-14 16:37:38 +08:00
test21243.d
test21255.d
test21267.c Fix #21267: ImportC: __forceinline ignored 2025-04-19 17:09:14 +08:00
test21271.c Fix #21271 - ImportC: incorrect compatibility macro for __pragma 2025-04-19 18:37:13 +08:00
test21282.d
test21299a.d
test21299b.d
test21299c.d
test21299d.d
test21330.d
test21372.d
test21398.d
test21414.d
test21432.d
test21438.d
test21464.d
test21501a.d
test21514.d feat(errors): enable verrors=context globally (#20576) 2025-01-03 05:17:59 +08:00
test21543.d
test21591.d
test21659.d
test21661.d
test21667.d
test21668.d
test21672.d Fix Bugzilla 24598 2024-06-11 07:20:29 +02:00
test21680.d
test21719.d
test21742.d
test21743.d
test21753.d
test21794.d
test21802.d
test21806.d
test21812.d
test21828.d
test21830.d
test21831.d
test21832.d
test21850.d
test21861.d
test21876.d
test21898.d
test21956.d
test21975.d
test22006.d
test22122.d
test22133.d
test22214.d
test22224.d
test22226.d
test22228.d
test22254.d
test22292.d
test22294.i
test22346.c Fix Bugzilla 24598 2024-06-11 07:20:29 +02:00
test22388.d
test22390.d
test22410.d
test22420.d
test22421.d
test22510.d Disallow initializing fields with themself (#20696) 2025-01-21 05:49:24 +08:00
test22558.d
test22559.i
test22577.c
test22593.d
test22607.c
test22619.d
test22625.d
test22626.d Fix Bugzilla 24705 - Arguments of synchronized method are wrongly shared with -preview=nosharedaccess 2024-08-17 00:37:26 +02:00
test22632.d
test22635.d
test22638.d
test22639.d
test22646.d
test22665.d
test22674.d
test22676.d
test22685.d
test22698.c
test22699.c
test22705.c
test22714.d
test22724.i
test22725.c
test22727.c
test22728.c
test22734.d
test22739.d
test22755.c
test22757.c
test22758.c
test22760.d
test22761.c
test22784.d
test22793.c
test22807.c
test22808.c
test22809.c
test22813.d
test22825.d
test22842.c
test22859.d
test22860.d
test22865.d
test22875.i
test22877.c
test22878.c
test22884.c
test22885.c
test22886.c
test22887.c
test22892.c
test22894.c
test22895.c
test22904.c
test22916.d
test22919.d
test22924.c
test22927.c
test22928.c
test22929.c
test22931.c
test22933.c
test22952.d
test22955.c
test22970.c
test22971.c
test22973.i
test22988.d
test22997.d
test23002.c
test23004.c
test23008.c
test23029.c
test23030.c
test23031.c
test23034.c
test23038.c
test23039.c
test23044.c
test23047.d
test23054.c
test23066.c
test23068.d
test23076.d
test23082.d
test23087.d
test23089.d
test23097.d feat(errors): enable verrors=context globally (#20576) 2025-01-03 05:17:59 +08:00
test23105.d
test23142.d
test23145.d
test23166.d
test23168.d
test23169.d
test23172.d
test23173.d
test23174.d
test23207.i
test23214.c
test23217.c
test23235.d
test23256.d
test23258.d
test23262.d
test23306.d
test23327.d
test23342.i
test23380.d
test23386.d
test23407.i
test23431.d
test23431_minimal.d
test23433.d
test23439.d
test23481.d
test23490.d
test23497.d
test23499.d
test23509.i
test23529.d
test23532.d
test23533.d
test23534.d
test23548.d
test23583.c
test23586.d
test23587.d
test23589.d
test23598.d
test23606.d
test23616.c
test23617.d
test23622.c
test23626.d
test23639.d
test23651.d
test23662.d
test23676.d
test23679.d
test23705.d
test23789.d
test23799.d
test23812.d Fix bugzilla 23812 - ImportC: allow adding function attributes to imported C functions (#16820) 2024-09-14 10:58:00 -07:00
test23857.d
test23862.d
test23863.d
test23866.i
test23870.i
test23871.c
test23874.d
test23875.c
test23879.c
test23912.d
test23913.d
test23923.c
test23935.i
test23936.i
test23948.d
test23951.d
test23958.c
test23965.d
test23966.d
test23978.d
test23979.d
test23986.d
test24013.d
test24022.d
test24055.d
test24061.d
test24066.d
test24069.i
test24107.d
test24109.d
test24118.d
test24130.c
test24171.sh
test24280.i
test24337.d Rebase stable6 (#16967) 2024-10-07 12:00:14 +03:00
test24338.d
test24390.d
test24479.d
test24504.c Don't needlessly cross-preprocess in 2 tests 2024-06-01 14:25:30 +02:00
test24505.c
test24511.d Don't needlessly cross-preprocess in 2 tests 2024-06-01 14:25:30 +02:00
test24560.d Fix Bugzilla Issue 24560 - dmd crash on imported function with default parameter containing new 2024-05-27 16:33:20 +08:00
test24594.c Fix bugzilla 24594 - ImportC: Packed struct has wrong layout (#16611) 2024-06-22 20:48:09 +08:00
test24733.c Fix bugzilla 24733 - ImportC: #pragma pack(pop) restores wrong alignment (#16821) 2024-08-31 21:31:56 +02:00
test24760.d Rebase stable6 (#16967) 2024-10-07 12:00:14 +03:00
test24762.d Fix Bugzilla Issue 24762 - @nogc false positive error 2024-09-12 13:45:36 +02:00
test__ctfeWrite.d
testAliasLookup.d
testcdefines.i
testcheckimports.d
testclidflags.sh
testcolor.sh Rephrase "no identifier for declarator" parse error (#20872) 2025-02-16 08:09:43 +08:00
testcomplex.i
testcontracts.d
testcorrectthis.d
testcov1.d
testCpCtor.d
testcstuff1.c ImportC: allow _Alignof expression (#21181) 2025-04-10 07:20:50 +08:00
testcstuff2.c Fix bugzilla 24447 - ImportC: extern symbols cannot have initializers 2024-07-22 00:45:15 +02:00
testcstuff3.d Improve fix: #20867 ICE on final switch forward referencing its enum. (#21097) 2025-03-28 10:13:12 +01:00
testcstuff4.i Remove some more OMF leftovers 2024-05-26 02:20:49 +02:00
testdefines.d Fix bugzilla 24639 - ImportC: defines of negative constants not detected for enum conversion (#16789) 2024-08-17 22:14:05 +08:00
testDIP37.d
testDIP37_10302.d
testDIP37_10354.d
testDIP37_10421.d
testDIP37a.d
testDIP42.d
testdip1008.d
testexpression.d
testfptr.d
testfwdref.d
testgotoskips.d
testheader1.d
testheader1i.d
testheader2.d
testheader2i.d
testheader3.d
testheader12567a.d
testheader12567b.d
testheader17125.d
testheaderudamodule.d
testhelp.d
testimport12242.d
testInference.d fix #20686 infer attributes for generated functions 2025-01-12 19:29:12 +08:00
testlambdacomp.d
testlibmain.d
testnoinline.c
testos.d
testparse.d
testpostblit.d
testprofile.d
testpull1810.d
testsctreturn.d
testtempl2.d
testVRP.d Fix bugzilla 24855 - VRP fails to prevent overflow after division 2024-11-13 01:49:06 +01:00
traits.d fix #20614 Add __traits(hasMoveConstructor, type) (#20615) 2024-12-28 22:02:47 -08:00
traits_getFunctionAttributes.d
transition_in.d
transitionhelp.d
typeid_name.d
uda.d
uda_lambda.d Don't parse lambda as UDA without parentheses (#21009) 2025-03-17 08:31:39 +08:00
udamodule1.d feat(errors): enable verrors=context globally (#20576) 2025-01-03 05:17:59 +08:00
udamodule2.d
union_initialization.d
user_defined_attributes.d
valist.c
vararg.d
vastartend.c [test/compileable/vastartend.c] use main function 2024-08-28 11:06:26 +02:00
vcg-ast-arraylength.d Rebase stable6 (#16967) 2024-10-07 12:00:14 +03:00
vcg-ast.d Fix #21105: Is-expressions should not generate unnecessary code for lowerings (#21106) 2025-03-29 08:36:10 +08:00
vcg_ast_compilable.d Rebase stable6 (#16967) 2024-10-07 12:00:14 +03:00
verrors_spec.d feat(errors): enable verrors=context globally (#20576) 2025-01-03 05:17:59 +08:00
version.d
version_d_optimized.d
vgc1.d
vgc2.d
vgc3.d
vtemplates.d
vtemplates_list.d
warn3882.d
warn12809.d
zerosize.d Get rid of obsolete CRuntime_DigitalMars special cases 2024-05-25 15:17:31 +02:00

Tests for successful compilation

Each D file will be compiled and the compilation is expected to succeed. Any diagnostic emitted must match the predefined diagnostic in the test file, otherwise the test will fail.

Purpose

The point of these files is to test that the compiler successfully emits code without unexpected diagnostics or potential crashes.

A further aim is that when the compiler does fail these tests, the test case should be crafted to make debugging the compiler as straightforward as practical.

Remarks

Test in this directory are not linked by default because linking is expensive and usually not necessary to reproduce an error. A test may specify the LINK test parameter to enforce the linking.

Refer to test/README.md for general information and the test guidelines.