diff options
author | Vedant Kumar <vsk@apple.com> | 2018-06-01 17:11:18 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2018-06-01 17:11:18 +0000 |
commit | fd657bd4be4392c5c5d7c0040fbf7b4189b651a4 (patch) | |
tree | 0c705121c311a15b114abbcb16f9e87e253cf273 /clang/test/CoverageMapping/label.cpp | |
parent | e80c3ce9cc100b0960c23380163aacbedd191996 (diff) | |
download | bcm5719-llvm-fd657bd4be4392c5c5d7c0040fbf7b4189b651a4.tar.gz bcm5719-llvm-fd657bd4be4392c5c5d7c0040fbf7b4189b651a4.zip |
[Coverage] Remove a test dependency on the itanium ABI
This should address a bot failure:
http://lab.llvm.org:8011/builders/llvm-clang-x86_64-expensive-checks-win/builds/9994/
llvm-svn: 333775
Diffstat (limited to 'clang/test/CoverageMapping/label.cpp')
-rw-r--r-- | clang/test/CoverageMapping/label.cpp | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/clang/test/CoverageMapping/label.cpp b/clang/test/CoverageMapping/label.cpp index 71bb8a3edfc..995835ad6b2 100644 --- a/clang/test/CoverageMapping/label.cpp +++ b/clang/test/CoverageMapping/label.cpp @@ -48,7 +48,17 @@ b: // CHECK-NEXT: File 0, [[@LINE]]:1 -> [[@LINE+2]]:2 x = x + 1; } - // CHECK-NEXT: main +// CHECK-NEXT: test3 +#define a b +void test3() { + if (0) + goto b; // CHECK: Gap,File 0, [[@LINE]]:11 -> [[@LINE+1]]:1 = [[retnCount:#[0-9]+]] +a: // CHECK-NEXT: Expansion,File 0, [[@LINE]]:1 -> [[@LINE]]:2 = [[retnCount]] (Expanded file = 1) + return; // CHECK-NEXT: File 0, [[@LINE-1]]:2 -> [[@LINE]]:9 = [[retnCount]] +} +#undef a + + // CHECK: main int main() { // CHECK-NEXT: File 0, [[@LINE]]:12 -> {{[0-9]+}}:2 = #0 int j = 0; for(int i = 0; i < 10; ++i) { // CHECK: File 0, [[@LINE]]:31 -> [[@LINE+13]]:4 = #1 @@ -69,12 +79,3 @@ int main() { // CHECK-NEXT: File 0, [[@LINE]]:12 -> {{[0-9]+}}:2 test1(0); test2(2); } - -// CHECK-LABEL: _Z5test3v: -#define a b -void test3() { - if (0) - goto b; // CHECK: Gap,File 0, [[@LINE]]:11 -> [[@LINE+1]]:1 = [[retnCount:#[0-9]+]] -a: // CHECK-NEXT: Expansion,File 0, [[@LINE]]:1 -> [[@LINE]]:2 = [[retnCount]] (Expanded file = 1) - return; // CHECK-NEXT: File 0, [[@LINE-1]]:2 -> [[@LINE]]:9 = [[retnCount]] -} |