summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/cpp11-migrate/HeaderReplacements/no_yaml.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/test/cpp11-migrate/HeaderReplacements/no_yaml.cpp')
-rw-r--r--clang-tools-extra/test/cpp11-migrate/HeaderReplacements/no_yaml.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/clang-tools-extra/test/cpp11-migrate/HeaderReplacements/no_yaml.cpp b/clang-tools-extra/test/cpp11-migrate/HeaderReplacements/no_yaml.cpp
deleted file mode 100644
index 880cc1f5a70..00000000000
--- a/clang-tools-extra/test/cpp11-migrate/HeaderReplacements/no_yaml.cpp
+++ /dev/null
@@ -1,24 +0,0 @@
-// Ensure that if -serialize-replacements is not provided, no serialized
-// replacement files should be generated and the changes are made directly.
-//
-// RUN: mkdir -p %T/Inputs
-// RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp
-// RUN: grep -Ev "// *[A-Z-]+:" %S/Inputs/no_yaml.h > %T/Inputs/no_yaml.h
-// RUN: cpp11-migrate -loop-convert %t.cpp -headers -include=%T/Inputs -- -I %T/Inputs/no_yaml.h
-// RUN: FileCheck --input-file=%t.cpp %s
-// RUN: FileCheck --input-file=%T/Inputs/no_yaml.h %S/Inputs/no_yaml.h
-// RUN: ls -1 %T | FileCheck %s --check-prefix=NO_YAML
-//
-// NO_YAML-NOT: {{no_yaml.cpp_.*.yaml}}
-#include "Inputs/no_yaml.h"
-
-void func() {
- int arr[10];
- for (unsigned i = 0; i < sizeof(arr)/sizeof(int); ++i) {
- arr[i] = 0;
- // CHECK: for (auto & elem : arr) {
- // CHECK-NEXT: elem = 0;
- }
-
- update(arr);
-}
OpenPOWER on IntegriCloud