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:
Dariush Eslimi 1998-10-10 08:11:06 +00:00 committed by Alexandre Oliva
parent e98791f8a6
commit 71685c48ea
2 changed files with 24 additions and 0 deletions

View File

@ -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

View File

@ -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);
}