cpp11-migrate: Fix build break on Windows introduced in r187041.
authorGuillaume Papin <guillaume.papin@epitech.eu>
Wed, 24 Jul 2013 15:35:24 +0000 (15:35 +0000)
committerGuillaume Papin <guillaume.papin@epitech.eu>
Wed, 24 Jul 2013 15:35:24 +0000 (15:35 +0000)
r187041 changed the way the transform are created and the order the transformed
are applied "may" have changed as well (no specific constraints exist on the
order). This produced a test failure on the Windows buildbot.

Now the test use -std=c++11, so 'nullptr' is defined and the test is not anymore
dependent on the order the transforms are applied.

llvm-svn: 187048

clang-tools-extra/test/cpp11-migrate/Combined/combined.cpp

index 03cfc1c..6971879 100644 (file)
@@ -1,8 +1,8 @@
 // RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp
 // RUN: grep -Ev "// *[A-Z-]+:" %s > %t_risky.cpp
-// RUN: cpp11-migrate -loop-convert -use-nullptr %t.cpp --
+// RUN: cpp11-migrate -loop-convert -use-nullptr %t.cpp -- -std=c++11
 // RUN: FileCheck -input-file=%t.cpp %s
-// RUN: cpp11-migrate -loop-convert -use-nullptr -risk=risky %t_risky.cpp --
+// RUN: cpp11-migrate -loop-convert -use-nullptr -risk=risky %t_risky.cpp -- -std=c++11
 // RUN: FileCheck -check-prefix=RISKY -input-file=%t_risky.cpp %s
 
 #define NULL 0