summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/init.c
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2016-11-11 17:29:56 +0000
committerSylvestre Ledru <sylvestre@debian.org>2016-11-11 17:29:56 +0000
commitd340ccc88a25af80a78882fb4d71544ec1f002b4 (patch)
treea7d60ac4106cb89426861d87efb9a62ada2d2872 /clang/test/Preprocessor/init.c
parent31ee8130684a0883177a1677ee62ac18f63f98be (diff)
downloadbcm5719-llvm-d340ccc88a25af80a78882fb4d71544ec1f002b4.tar.gz
bcm5719-llvm-d340ccc88a25af80a78882fb4d71544ec1f002b4.zip
Add a new optimization option -Og
Summary: Just like gcc, we should have the -Og option as more and more software are using it: https://llvm.org/bugs/show_bug.cgi?id=20765 Reviewers: echristo, dberlin, dblaikie, keith.walker.arm, rengolin Subscribers: aprantl, friss, mehdi_amini, RKSimon, probinson, majnemer, cfe-commits Differential Revision: https://reviews.llvm.org/D24998 llvm-svn: 286602
Diffstat (limited to 'clang/test/Preprocessor/init.c')
-rw-r--r--clang/test/Preprocessor/init.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/init.c b/clang/test/Preprocessor/init.c
index 61640a0fadc..d5d83da0fb3 100644
--- a/clang/test/Preprocessor/init.c
+++ b/clang/test/Preprocessor/init.c
@@ -205,6 +205,12 @@
// O1:#define __OPTIMIZE__ 1
//
//
+// RUN: %clang_cc1 -Og -E -dM < /dev/null | FileCheck -match-full-lines -check-prefix Og %s
+//
+// Og-NOT:#define __OPTIMIZE_SIZE__
+// Og :#define __OPTIMIZE__ 1
+//
+//
// RUN: %clang_cc1 -Os -E -dM < /dev/null | FileCheck -match-full-lines -check-prefix Os %s
//
// Os:#define __OPTIMIZE_SIZE__ 1
OpenPOWER on IntegriCloud