summaryrefslogtreecommitdiffstats
path: root/test/Driver/darwin-ld.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Driver/darwin-ld.c')
-rw-r--r--test/Driver/darwin-ld.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Driver/darwin-ld.c b/test/Driver/darwin-ld.c
index 3206f65..4cda37f 100644
--- a/test/Driver/darwin-ld.c
+++ b/test/Driver/darwin-ld.c
@@ -121,3 +121,8 @@
// RUN: %clang -target x86_64-apple-darwin12 -### %t.o 2> %t.log
// RUN: FileCheck -check-prefix=LINK_NO_CRT1 %s < %t.log
// LINK_NO_CRT1-NOT: crt
+
+// RUN: %clang -target i386-apple-darwin12 -pg -### %t.o 2> %t.log
+// RUN: FileCheck -check-prefix=LINK_PG %s < %t.log
+// LINK_PG: -lgcrt1.o
+// LINK_PG: -no_new_main
OpenPOWER on IntegriCloud