summaryrefslogtreecommitdiffstats
path: root/clang/test/PCH
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2014-06-10 21:35:24 +0000
committerReid Kleckner <reid@kleckner.net>2014-06-10 21:35:24 +0000
commit4173f6aff950e3db861b1498f887d0c8cad92a96 (patch)
tree14d8a0c621beebf5a6107ee6ed674a09f0fdc3e9 /clang/test/PCH
parentf57dcbb615b9e2ca2ac5b97c66321682b94761ca (diff)
downloadbcm5719-llvm-4173f6aff950e3db861b1498f887d0c8cad92a96.tar.gz
bcm5719-llvm-4173f6aff950e3db861b1498f887d0c8cad92a96.zip
*Really* fix DOS newlines introduced in r210330
r210369 didn't quite catch all of them. llvm-svn: 210593
Diffstat (limited to 'clang/test/PCH')
-rw-r--r--clang/test/PCH/pragma-loop.cpp124
1 files changed, 62 insertions, 62 deletions
diff --git a/clang/test/PCH/pragma-loop.cpp b/clang/test/PCH/pragma-loop.cpp
index 41bbf72db3d..cb3a7c5aa5e 100644
--- a/clang/test/PCH/pragma-loop.cpp
+++ b/clang/test/PCH/pragma-loop.cpp
@@ -1,62 +1,62 @@
-// RUN: %clang_cc1 -emit-pch -o %t.a %s
-// RUN: %clang_cc1 -include-pch %t.a %s -ast-print -o - | FileCheck %s
-
-// FIXME: A bug in ParsedAttributes causes the order of the attributes to be
-// reversed. The checks are consequently in the reverse order below.
-
-// CHECK: #pragma clang loop interleave_count(8)
-// CHECK: #pragma clang loop vectorize_width(4)
-// CHECK: #pragma clang loop interleave(disable)
-// CHECK: #pragma clang loop vectorize(enable)
-// CHECK: #pragma clang loop interleave(enable)
-// CHECK: #pragma clang loop vectorize(disable)
-
-#ifndef HEADER
-#define HEADER
-
-class pragma_test {
-public:
- inline void run1(int *List, int Length) {
- int i = 0;
-#pragma clang loop vectorize_width(4)
-#pragma clang loop interleave_count(8)
- while (i < Length) {
- List[i] = i;
- i++;
- }
- }
-
- inline void run2(int *List, int Length) {
- int i = 0;
-#pragma clang loop vectorize(enable)
-#pragma clang loop interleave(disable)
- while (i - 1 < Length) {
- List[i] = i;
- i++;
- }
- }
-
- inline void run3(int *List, int Length) {
- int i = 0;
-#pragma clang loop vectorize(disable)
-#pragma clang loop interleave(enable)
- while (i - 3 < Length) {
- List[i] = i;
- i++;
- }
- }
-};
-
-#else
-
-void test() {
- int List[100];
-
- pragma_test pt;
-
- pt.run1(List, 100);
- pt.run2(List, 100);
- pt.run3(List, 100);
-}
-
-#endif
+// RUN: %clang_cc1 -emit-pch -o %t.a %s
+// RUN: %clang_cc1 -include-pch %t.a %s -ast-print -o - | FileCheck %s
+
+// FIXME: A bug in ParsedAttributes causes the order of the attributes to be
+// reversed. The checks are consequently in the reverse order below.
+
+// CHECK: #pragma clang loop interleave_count(8)
+// CHECK: #pragma clang loop vectorize_width(4)
+// CHECK: #pragma clang loop interleave(disable)
+// CHECK: #pragma clang loop vectorize(enable)
+// CHECK: #pragma clang loop interleave(enable)
+// CHECK: #pragma clang loop vectorize(disable)
+
+#ifndef HEADER
+#define HEADER
+
+class pragma_test {
+public:
+ inline void run1(int *List, int Length) {
+ int i = 0;
+#pragma clang loop vectorize_width(4)
+#pragma clang loop interleave_count(8)
+ while (i < Length) {
+ List[i] = i;
+ i++;
+ }
+ }
+
+ inline void run2(int *List, int Length) {
+ int i = 0;
+#pragma clang loop vectorize(enable)
+#pragma clang loop interleave(disable)
+ while (i - 1 < Length) {
+ List[i] = i;
+ i++;
+ }
+ }
+
+ inline void run3(int *List, int Length) {
+ int i = 0;
+#pragma clang loop vectorize(disable)
+#pragma clang loop interleave(enable)
+ while (i - 3 < Length) {
+ List[i] = i;
+ i++;
+ }
+ }
+};
+
+#else
+
+void test() {
+ int List[100];
+
+ pragma_test pt;
+
+ pt.run1(List, 100);
+ pt.run2(List, 100);
+ pt.run3(List, 100);
+}
+
+#endif
OpenPOWER on IntegriCloud