This revision was automatically updated to reflect the committed changes.
Closed by commit rL268344: Adding a test for a compiler crash that was fixed in 
r248069. (authored by dyung).

Changed prior to commit:
  http://reviews.llvm.org/D19048?vs=55495&id=55925#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D19048

Files:
  cfe/trunk/test/Modules/Inputs/getSourceDescriptor-crash/h1.h
  cfe/trunk/test/Modules/Inputs/getSourceDescriptor-crash/module.modulemap
  cfe/trunk/test/Modules/getSourceDescriptor-crash.cpp

Index: cfe/trunk/test/Modules/Inputs/getSourceDescriptor-crash/h1.h
===================================================================
--- cfe/trunk/test/Modules/Inputs/getSourceDescriptor-crash/h1.h
+++ cfe/trunk/test/Modules/Inputs/getSourceDescriptor-crash/h1.h
@@ -0,0 +1 @@
+#pragma once
Index: cfe/trunk/test/Modules/Inputs/getSourceDescriptor-crash/module.modulemap
===================================================================
--- cfe/trunk/test/Modules/Inputs/getSourceDescriptor-crash/module.modulemap
+++ cfe/trunk/test/Modules/Inputs/getSourceDescriptor-crash/module.modulemap
@@ -0,0 +1,3 @@
+module foo {
+       header "h1.h"
+}
Index: cfe/trunk/test/Modules/getSourceDescriptor-crash.cpp
===================================================================
--- cfe/trunk/test/Modules/getSourceDescriptor-crash.cpp
+++ cfe/trunk/test/Modules/getSourceDescriptor-crash.cpp
@@ -0,0 +1,9 @@
+// RUN: %clang_cc1 -I %S/Inputs/getSourceDescriptor-crash -S -emit-llvm 
-debug-info-kind=limited -fimplicit-module-maps %s -o - | FileCheck %s
+
+#include "h1.h"
+#include "h1.h"
+
+// CHECK: DIImportedEntity
+// CHECK-SAME: entity: ![[ENTITY:[0-9]+]]
+// CHECK: ![[ENTITY]] = !DIModule
+// CHECK-SAME: name: "foo"


Index: cfe/trunk/test/Modules/Inputs/getSourceDescriptor-crash/h1.h
===================================================================
--- cfe/trunk/test/Modules/Inputs/getSourceDescriptor-crash/h1.h
+++ cfe/trunk/test/Modules/Inputs/getSourceDescriptor-crash/h1.h
@@ -0,0 +1 @@
+#pragma once
Index: cfe/trunk/test/Modules/Inputs/getSourceDescriptor-crash/module.modulemap
===================================================================
--- cfe/trunk/test/Modules/Inputs/getSourceDescriptor-crash/module.modulemap
+++ cfe/trunk/test/Modules/Inputs/getSourceDescriptor-crash/module.modulemap
@@ -0,0 +1,3 @@
+module foo {
+       header "h1.h"
+}
Index: cfe/trunk/test/Modules/getSourceDescriptor-crash.cpp
===================================================================
--- cfe/trunk/test/Modules/getSourceDescriptor-crash.cpp
+++ cfe/trunk/test/Modules/getSourceDescriptor-crash.cpp
@@ -0,0 +1,9 @@
+// RUN: %clang_cc1 -I %S/Inputs/getSourceDescriptor-crash -S -emit-llvm -debug-info-kind=limited -fimplicit-module-maps %s -o - | FileCheck %s
+
+#include "h1.h"
+#include "h1.h"
+
+// CHECK: DIImportedEntity
+// CHECK-SAME: entity: ![[ENTITY:[0-9]+]]
+// CHECK: ![[ENTITY]] = !DIModule
+// CHECK-SAME: name: "foo"
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to