diff options
Diffstat (limited to 'gcc/testsuite/gdc.test/fail_compilation/fail1900.d')
-rw-r--r-- | gcc/testsuite/gdc.test/fail_compilation/fail1900.d | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/testsuite/gdc.test/fail_compilation/fail1900.d b/gcc/testsuite/gdc.test/fail_compilation/fail1900.d index cabfbdff8dc..fd0d6ac887f 100644 --- a/gcc/testsuite/gdc.test/fail_compilation/fail1900.d +++ b/gcc/testsuite/gdc.test/fail_compilation/fail1900.d @@ -1,10 +1,11 @@ /* +EXTRA_FILES: imports/fail1900a.d imports/fail1900b.d TEST_OUTPUT: --- -fail_compilation/fail1900.d(26): Error: template fail1900.Mix1a!().Foo matches more than one template declaration: -fail_compilation/fail1900.d(13): Foo(ubyte x) +fail_compilation/fail1900.d(27): Error: template `fail1900.Mix1a!().Foo` matches more than one template declaration: +fail_compilation/fail1900.d(14): `Foo(ubyte x)` and -fail_compilation/fail1900.d(14): Foo(byte x) +fail_compilation/fail1900.d(15): `Foo(byte x)` --- */ @@ -29,7 +30,7 @@ void test1900a() /* TEST_OUTPUT: --- -fail_compilation/fail1900.d(41): Error: imports.fail1900b.Bar(short n) at fail_compilation/imports/fail1900b.d(2) conflicts with imports.fail1900a.Bar(int n) at fail_compilation/imports/fail1900a.d(2) +fail_compilation/fail1900.d(42): Error: template `imports.fail1900b.Bar(short n)` at fail_compilation/imports/fail1900b.d(2) conflicts with template `imports.fail1900a.Bar(int n)` at fail_compilation/imports/fail1900a.d(2) --- */ @@ -44,7 +45,7 @@ void test1900b() /* TEST_OUTPUT: --- -fail_compilation/fail1900.d(65): Error: fail1900.Mix2b!().Baz(int x) at fail_compilation/fail1900.d(57) conflicts with fail1900.Mix2a!().Baz(byte x) at fail_compilation/fail1900.d(53) +fail_compilation/fail1900.d(66): Error: template `fail1900.Mix2b!().Baz(int x)` at fail_compilation/fail1900.d(58) conflicts with template `fail1900.Mix2a!().Baz(byte x)` at fail_compilation/fail1900.d(54) --- */ |