[PATCH] D35577: Add -flookup-tables and -fno-lookup-tables flags
Joerg Sonnenberger via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 18 15:29:00 PDT 2017
joerg added inline comments.
================
Comment at: test/CodeGen/nouselookuptable.c:1
+// RUN: %clang_cc1 -S -fno-lookup-tables %s -emit-llvm -o - | FileCheck %s
+
----------------
Check positive flag and the default case as well.
================
Comment at: test/CodeGen/nouselookuptable.c:6
+
+int main() {
+ return 0;
----------------
Just use f(void) or so. main is special enough, so avoiding it in test cases is often a good idea.
https://reviews.llvm.org/D35577
More information about the cfe-commits
mailing list