We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 830c1d8 commit 24ba2a0Copy full SHA for 24ba2a0
regression/cpp/auto2/main.cpp
@@ -0,0 +1,7 @@
1
+int main()
2
+{
3
+#ifndef _MSC_VER
4
+ // Visual Studio uses C++14 by default, thus the below would not be valid
5
+ auto int x = 42;
6
+#endif
7
+}
regression/cpp/auto2/test.desc
@@ -0,0 +1,8 @@
+CORE
+main.cpp
+
+^EXIT=0$
+^SIGNAL=0$
+--
+^warning: ignoring
8
+^CONVERSION ERROR$
regression/cpp/auto3/main.cpp
@@ -0,0 +1,9 @@
+ // should yield a parse error unless in C++11 (or later) mode
+ auto x = 42;
+#else
+ intentionally invalid
9
regression/cpp/auto3/test.desc
+^EXIT=(64|1)$
+parse error
0 commit comments