Skip to content

Commit

Permalink
Adding a test for a compiler crash that was fixed in r248069.
Browse files Browse the repository at this point in the history
Differential Revision: http://reviews.llvm.org/D19048

llvm-svn: 268344
  • Loading branch information
dyung committed May 3, 2016
1 parent f5c5965 commit d58d9fa
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions clang/test/Modules/Inputs/getSourceDescriptor-crash/h1.h
@@ -0,0 +1 @@
#pragma once
@@ -0,0 +1,3 @@
module foo {
header "h1.h"
}
9 changes: 9 additions & 0 deletions clang/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"

0 comments on commit d58d9fa

Please sign in to comment.