summaryrefslogtreecommitdiff
path: root/Tests/CompileFeatures/cxx_inheriting_constructors.cpp
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-12 21:47:01 +0100
committerStephen Kelly <steveire@gmail.com>2015-01-17 14:48:27 +0100
commit69182ce4ed95c62d51e208c8620ff4e6599dee2e (patch)
tree5949932d4a1625697c42d8cb08bb892ebd4b509e /Tests/CompileFeatures/cxx_inheriting_constructors.cpp
parent54156d723a3fde678ed7f884364ad0449d23ad2b (diff)
downloadcmake-69182ce4ed95c62d51e208c8620ff4e6599dee2e.tar.gz
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.
Diffstat (limited to 'Tests/CompileFeatures/cxx_inheriting_constructors.cpp')
0 files changed, 0 insertions, 0 deletions