diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/other/nontype-1.C')
-rw-r--r-- | gcc/testsuite/g++.dg/other/nontype-1.C | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/other/nontype-1.C b/gcc/testsuite/g++.dg/other/nontype-1.C new file mode 100644 index 000000000..11bbfb829 --- /dev/null +++ b/gcc/testsuite/g++.dg/other/nontype-1.C @@ -0,0 +1,7 @@ +template <class Op> +bool asfun(Op f, + Op::first_argument_type a, // { dg-error "not a type" } + Op::second_argument_type b) // { dg-error "not a type" } +{ + return Op(a, b); +} |