]> granicus.if.org Git - clang/commitdiff
Fix typo in error messages. NFC.
authorKelvin Li <kkwli0@gmail.com>
Fri, 16 Dec 2016 00:15:54 +0000 (00:15 +0000)
committerKelvin Li <kkwli0@gmail.com>
Fri, 16 Dec 2016 00:15:54 +0000 (00:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@289897 91177308-0d34-0410-b5e6-96231b3b80d8

test/OpenMP/teams_distribute_parallel_for_simd_loop_messages.cpp

index 5f0d4a3330d66230d40ed45dfb5c0ecad0d460ac..675ecb407f4da0d4a502d899078b5a1dd095358b 100644 (file)
@@ -659,12 +659,12 @@ void test_loop_eh() {
     try { // expected-error {{'try' statement cannot be used in OpenMP simd region}}
       for (int j = 0; j < 10; ++j) {
         if (a[i] > b[j])
-          throw a[i]; // expected-error {{throw' statement cannot be used in OpenMP simd region}}
+          throw a[i]; // expected-error {{'throw' statement cannot be used in OpenMP simd region}}
       }
-      throw a[i]; // expected-error {{throw' statement cannot be used in OpenMP simd region}}
+      throw a[i]; // expected-error {{'throw' statement cannot be used in OpenMP simd region}}
     } catch (float f) {
       if (f > 0.1)
-        throw a[i]; // expected-error {{throw' statement cannot be used in OpenMP simd region}}
+        throw a[i]; // expected-error {{'throw' statement cannot be used in OpenMP simd region}}
       return; // expected-error {{cannot return from OpenMP region}}
     }
     switch (i) {
@@ -676,7 +676,7 @@ void test_loop_eh() {
     }
     for (int j = 0; j < 10; j++) {
       if (c[i] > 10)
-        throw c[i]; // expected-error {{throw' statement cannot be used in OpenMP simd region}}
+        throw c[i]; // expected-error {{'throw' statement cannot be used in OpenMP simd region}}
     }
   }
   if (c[9] > 10)