This revision was automatically updated to reflect the committed changes.
Closed by commit rC330530: Add tests for llvm-bcanalyzer stream types (authored 
by modocache, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D41980?vs=143458&id=143464#toc

Repository:
  rC Clang

https://reviews.llvm.org/D41980

Files:
  test/Misc/serialized-diags-bcanalyzer.c
  test/PCH/include-stream-type.cpp


Index: test/PCH/include-stream-type.cpp
===================================================================
--- test/PCH/include-stream-type.cpp
+++ test/PCH/include-stream-type.cpp
@@ -0,0 +1,10 @@
+// Test that llvm-bcanalyzer recognizes the stream type of a PCH file.
+
+// RUN: mkdir -p %t-dir
+// Copying files allow for read-only checkouts to run this test.
+// RUN: cp %S/Inputs/pragma-once2-pch.h %t-dir
+// RUN: cp %S/Inputs/pragma-once2.h %t-dir
+// RUN: %clang_cc1 -x c++-header -emit-pch -fmodule-format=raw -o %t 
%t-dir/pragma-once2-pch.h
+// RUN: llvm-bcanalyzer -dump %t | FileCheck %s
+//
+// CHECK: Stream type: Clang Serialized AST
Index: test/Misc/serialized-diags-bcanalyzer.c
===================================================================
--- test/Misc/serialized-diags-bcanalyzer.c
+++ test/Misc/serialized-diags-bcanalyzer.c
@@ -0,0 +1,3 @@
+// RUN: %clang -Wall -fsyntax-only %s --serialize-diagnostics %t.diag > 
/dev/null 2>&1
+// RUN: llvm-bcanalyzer -dump %t.diag | FileCheck %s
+// CHECK: Stream type: Clang Serialized Diagnostics


Index: test/PCH/include-stream-type.cpp
===================================================================
--- test/PCH/include-stream-type.cpp
+++ test/PCH/include-stream-type.cpp
@@ -0,0 +1,10 @@
+// Test that llvm-bcanalyzer recognizes the stream type of a PCH file.
+
+// RUN: mkdir -p %t-dir
+// Copying files allow for read-only checkouts to run this test.
+// RUN: cp %S/Inputs/pragma-once2-pch.h %t-dir
+// RUN: cp %S/Inputs/pragma-once2.h %t-dir
+// RUN: %clang_cc1 -x c++-header -emit-pch -fmodule-format=raw -o %t %t-dir/pragma-once2-pch.h
+// RUN: llvm-bcanalyzer -dump %t | FileCheck %s
+//
+// CHECK: Stream type: Clang Serialized AST
Index: test/Misc/serialized-diags-bcanalyzer.c
===================================================================
--- test/Misc/serialized-diags-bcanalyzer.c
+++ test/Misc/serialized-diags-bcanalyzer.c
@@ -0,0 +1,3 @@
+// RUN: %clang -Wall -fsyntax-only %s --serialize-diagnostics %t.diag > /dev/null 2>&1
+// RUN: llvm-bcanalyzer -dump %t.diag | FileCheck %s
+// CHECK: Stream type: Clang Serialized Diagnostics
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to