mirror of https://github.com/CGAL/cgal
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:
parent
7f071aadc3
commit
94d2f014f7
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue