[PATCH] D47260: Testcase for dwarf 5 crash/assert when calculating a checksum for an expansion

Tom Rix via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 23 08:37:09 PDT 2018

trixirt updated this revision to Diff 148228.
trixirt added a comment.

Rename test to dwarf5-expansion-checksum.c

  rC Clang



Index: test/CodeGen/dwarf5-expansion-checksum.c
--- /dev/null
+++ test/CodeGen/dwarf5-expansion-checksum.c
@@ -0,0 +1,10 @@
+// RUN: %clang -c -gdwarf-5 %s  -o /dev/null
+// Don't crash calculating the checksum of string.h
+#if __has_include("/usr/include/string.h")
+#define __NTH fct
+void fn1() {}
+# 7 "/usr/include/string.h"
+#if 8
+void __NTH() {}

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47260.148228.patch
Type: text/x-patch
Size: 438 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180523/9b26b2a9/attachment.bin>

More information about the cfe-commits mailing list