typeof1.C: New test; typeof based on template-dependent type
* g++.old-deja/g++.ext/typeof1.C: New test; typeof based on template-dependent type From-SVN: r22972
This commit is contained in:
parent
e98791f8a6
commit
71685c48ea
|
@ -1,3 +1,8 @@
|
|||
1998-10-10 Dariush Eslimi <eslimi@loran.com>
|
||||
|
||||
* g++.old-deja/g++.ext/typeof1.C: New test; typeof based on
|
||||
template-dependent type
|
||||
|
||||
1998-10-10 Alexandre Oliva <oliva@dcc.unicamp.br>
|
||||
|
||||
* g++.old-deja/g++.brendan/parse3.C: XFAILs, not ERRORs
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
// Build don't link:
|
||||
|
||||
// crash test - XFAIL *-*-*
|
||||
|
||||
struct inttest {
|
||||
int elem[1];
|
||||
};
|
||||
|
||||
template <class T>
|
||||
void F(T x)
|
||||
{
|
||||
typedef typeof(x.elem[0]) dummy;
|
||||
i = 1;
|
||||
}
|
||||
|
||||
int main() {
|
||||
inttest x;
|
||||
F(x);
|
||||
}
|
Loading…
Reference in New Issue