Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Unified Diff: gcc/gcc/testsuite/g++.dg/debug/dwarf2/pubnames-1.C

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gcc/gcc/testsuite/g++.dg/debug/dwarf2/dwarf2.exp ('k') | gcc/gcc/testsuite/g++.dg/dg.exp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/gcc/testsuite/g++.dg/debug/dwarf2/pubnames-1.C
diff --git a/gcc/gcc/testsuite/g++.dg/debug/dwarf2/pubnames-1.C b/gcc/gcc/testsuite/g++.dg/debug/dwarf2/pubnames-1.C
index f5089ca2da81af1e0449ee3674d5e020b36c3294..543439da323e0190ba00b81526600acef68de0ce 100644
--- a/gcc/gcc/testsuite/g++.dg/debug/dwarf2/pubnames-1.C
+++ b/gcc/gcc/testsuite/g++.dg/debug/dwarf2/pubnames-1.C
@@ -1,9 +1,18 @@
// Contributed by Dodji Seketeli <dodji@redhat.com>
// Origin PR debug/39706
-// { dg-options "-g -dA" }
+// { dg-options "-g -dA -fno-merge-debug-strings" }
// { dg-do compile }
-// { dg-final { scan-assembler-times ".debug_pubnames" 1 } }
-// { dg-final { scan-assembler-times "\"main\".*external name" 1 } }
+//
+// There should be one debug_pubnames section generated.
+// On Darwin though, there is also a label pointing at the begining of the
+// debug_pubnames section. The assembly code of that label adds an occurence
+// of section declaration assembly. So on Darwin, we need to check for two
+// occurences of the debug_pubnames section declaration.
+// { dg-final { scan-assembler-times "\.section\[\t \].*?debug_pubnames" 1 { target { ! *-*-darwin* } } } }
+// { dg-final { scan-assembler-times "\.section\[\t \].*?debug_pubnames" 2 { target { *-*-darwin* } } } }
+//
+// Then check of the presence of the names we are interested in.
+// { dg-final { scan-assembler-times "\"main.0\".*external name" 1 } }
// { dg-final { scan-assembler-times "\"ns::ns_x.*external name" 1 } }
// { dg-final { scan-assembler-times "\"y::y_x.*external name" 1 } }
@@ -11,4 +20,3 @@ namespace ns { int ns_x; }
class y { public: static int y_x; };
int y::y_x;
int main() { return ns::ns_x; }
-
« no previous file with comments | « gcc/gcc/testsuite/g++.dg/debug/dwarf2/dwarf2.exp ('k') | gcc/gcc/testsuite/g++.dg/dg.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698