aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/casting-operator2.C
diff options
context:
space:
mode:
authorKelley Cook <kcook@gcc.gnu.org>2004-07-20 00:34:03 +0000
committerKelley Cook <kcook@gcc.gnu.org>2004-07-20 00:34:03 +0000
commitf305e943b986ffeab5c9cf9a1b083daedd842936 (patch)
treef180e44ddbb4dc8ab183fc78e11e922afb93048f /gcc/testsuite/g++.dg/parse/casting-operator2.C
parent7cd1bc94910239bff151dd90b437c764df3caea3 (diff)
Remove DOS style trailing Carriage Returns
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@84941 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg/parse/casting-operator2.C')
-rw-r--r--gcc/testsuite/g++.dg/parse/casting-operator2.C54
1 files changed, 27 insertions, 27 deletions
diff --git a/gcc/testsuite/g++.dg/parse/casting-operator2.C b/gcc/testsuite/g++.dg/parse/casting-operator2.C
index 31f14b36106..008fa62dc74 100644
--- a/gcc/testsuite/g++.dg/parse/casting-operator2.C
+++ b/gcc/testsuite/g++.dg/parse/casting-operator2.C
@@ -1,27 +1,27 @@
-// { dg-do compile }
-// Contributed by Martin Loewis <loewis at informatik dot hu-berlin dot de>
-// PR c++/8856: Make sure template conversion operators are not parsed as
-// template names.
-
-struct K {};
-template <bool> struct K2 {};
-
-template <class T> struct A {
- template <class U> operator U() { return U(); }
-};
-
-int main() {
- A<double> a;
-
- (void)a.operator int();
- (void)a.operator double();
- (void)a.operator K2<true>();
- (void)a.A<double>::operator int();
- (void)a.A<double>::operator double();
- (void)a.A<double>::operator K2<true>();
-
- (void)a.operator double<int>(); // { dg-error "not a template" }
- (void)a.operator K<int>(); // { dg-error "not a template" }
- (void)a.A<double>::operator double<int>(); // { dg-error "not a template" }
- (void)a.A<double>::operator K<int>(); // { dg-error "not a template" }
-}
+// { dg-do compile }
+// Contributed by Martin Loewis <loewis at informatik dot hu-berlin dot de>
+// PR c++/8856: Make sure template conversion operators are not parsed as
+// template names.
+
+struct K {};
+template <bool> struct K2 {};
+
+template <class T> struct A {
+ template <class U> operator U() { return U(); }
+};
+
+int main() {
+ A<double> a;
+
+ (void)a.operator int();
+ (void)a.operator double();
+ (void)a.operator K2<true>();
+ (void)a.A<double>::operator int();
+ (void)a.A<double>::operator double();
+ (void)a.A<double>::operator K2<true>();
+
+ (void)a.operator double<int>(); // { dg-error "not a template" }
+ (void)a.operator K<int>(); // { dg-error "not a template" }
+ (void)a.A<double>::operator double<int>(); // { dg-error "not a template" }
+ (void)a.A<double>::operator K<int>(); // { dg-error "not a template" }
+}