Don't test the C++0X auto on int, because sunCC implicitly uses int with

the old meaning of auto.
This commit is contained in:
Marc Glisse 2010-07-18 18:03:30 +00:00
parent 7f071aadc3
commit 94d2f014f7
1 changed files with 6 additions and 4 deletions

View File

@ -20,17 +20,19 @@
//| If a compiler does not support C++0x auto
//| CGAL_CFG_NO_CPP0X_AUTO is set.
void use(int) {}
struct A {};
int f()
void use(A) {}
A f()
{
return 0;
return A();
}
int main()
{
auto i = f();
int j = i + 1;
A j = i;
use(j);
return 0;
}