aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Driver/call-graph-section.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Driver/call-graph-section.c')
-rw-r--r--clang/test/Driver/call-graph-section.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Driver/call-graph-section.c b/clang/test/Driver/call-graph-section.c
new file mode 100644
index 0000000..5832aa6
--- /dev/null
+++ b/clang/test/Driver/call-graph-section.c
@@ -0,0 +1,5 @@
+// RUN: %clang -### -S -fcall-graph-section %s 2>&1 | FileCheck --check-prefix=CALL-GRAPH-SECTION %s
+// RUN: %clang -### -S -fcall-graph-section -fno-call-graph-section %s 2>&1 | FileCheck --check-prefix=NO-CALL-GRAPH-SECTION %s
+
+// CALL-GRAPH-SECTION: "-fcall-graph-section"
+// NO-CALL-GRAPH-SECTION-NOT: "-fcall-graph-section"