Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / template / array10.C
blob81aac84b0b7e86c4ecbcd020aa76fdad4a580116
1 // Copyright (C) 2005 Free Software Foundation, Inc.
2 // Contributed by Nathan Sidwell 5 Jan 2005 <nathan@codesourcery.com>
4 // PR 19270: ICE
5 // Origin:  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7 template<class T> struct Vec {
8   T* data;
9   T& operator[](int i) const;
12 template<class T> inline T& Vec<T>::operator[](int i) const
14   return (&data[0])[i];
17 inline double foo(Vec<double> v)
19   return v[0];