diff options
Diffstat (limited to 'gcc/testsuite/gdc.test/fail_compilation/diag_template_this.d')
-rw-r--r-- | gcc/testsuite/gdc.test/fail_compilation/diag_template_this.d | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.test/fail_compilation/diag_template_this.d b/gcc/testsuite/gdc.test/fail_compilation/diag_template_this.d new file mode 100644 index 00000000000..778f68e8842 --- /dev/null +++ b/gcc/testsuite/gdc.test/fail_compilation/diag_template_this.d @@ -0,0 +1,11 @@ +/** +TEST_OUTPUT: +--- +fail_compilation/diag_template_this.d(1): Error: identifier expected for template `this` parameter +fail_compilation/diag_template_this.d(1): Error: found `this` when expecting `(` +fail_compilation/diag_template_this.d(1): Error: semicolon expected following function declaration +fail_compilation/diag_template_this.d(1): Error: declaration expected, not `(` +--- + */ +#line 1 +void func1(this this)() {} |