CMake/Tests/CompileFeatures
Stephen Kelly 69182ce4ed Features: Ensure that the cxx_auto_type test is correct.
SolarisStudio considers 'auto' to be a storage class specifier in
C++98 mode (as appropriate), and considers variables without a specified
type to be of type int.  So, it treats

 auto x = 3.14;

as

 auto int x = 3.14;

which in C++98 mode is equivalent to

 int x = 3.14;

and it does not fail to compile as expected.

Change the test to use a reference so that the type must be known.
2015-01-17 14:48:27 +01:00
..
2015-01-16 00:11:01 +01:00
2014-04-08 11:05:56 +02:00
2014-04-08 11:05:56 +02:00
2014-04-08 11:05:54 +02:00
2014-04-08 11:05:54 +02:00
2014-04-08 11:05:54 +02:00
2014-04-08 11:05:55 +02:00
2014-04-08 11:05:55 +02:00
2014-04-08 11:05:55 +02:00
2014-04-08 11:05:54 +02:00
2014-04-08 11:05:55 +02:00
2014-04-07 18:11:18 +02:00