add incomplete type tests
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@580 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
a28d4d6ddd
commit
f13e5f58ef
3 changed files with 76 additions and 2 deletions
|
@ -10,7 +10,7 @@
|
|||
// without express or implied warranty.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Header:
|
||||
// $Header$
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning (disable: 4512)
|
||||
|
@ -166,6 +166,13 @@ int main()
|
|||
// more test code
|
||||
////////////////////
|
||||
|
||||
// incomplete type test
|
||||
// this must give errors
|
||||
|
||||
//Incomplete1 ii; // compiler error
|
||||
//Incomplete2 i2; // linker error
|
||||
//Incomplete4 i4; // compiler error
|
||||
|
||||
/////////////////////////////////////////
|
||||
// Definition of ImplT<E>
|
||||
/////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue