summaryrefslogtreecommitdiffstats
path: root/clang/test/Frontend/invalid-o-level.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix handling of invalid -O options.Rafael Espindola2014-12-161-3/+4
| | | | | | | | We were checking the value after truncating it to a bitfield. Thanks to Yunzhong Gao for noticing it. llvm-svn: 224378
* Avoid non-attributive uses of 'unsupported' in diagnosticsAlp Toker2014-07-141-1/+1
| | | | | | | | | | | | | We don't have a style guide for diagnostic messages, but convention strongly favours the forms: 'attribute is not supported', 'unsupported attribute' We generally avoid: 'attribute is unsupported', 'non-supported attribute' llvm-svn: 212972
* Remove period at end of "optimization level is unsupported" diagnosticHans Wennborg2013-11-181-1/+1
| | | | llvm-svn: 195048
* Make test/Driver/clang_f_opts.c not write to the test dirHans Wennborg2013-11-181-1/+1
| | | | | | | After r195009, the test would write a .o file to the test dir. Send that to /dev/null instead. Also fix the typo in test/Frontend/invalid-o-level.c. llvm-svn: 195047
* Using an invalid -O falls back on -O3 instead of an errorSylvestre Ledru2013-11-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Currently with clang: $ clang -O20 foo.c error: invalid value '20' in '-O20' With the patch: $ clang -O20 foo.c warning: optimization level '-O20' is unsupported; using '-O3' instead. 1 warning generated. This matches the gcc behavior (with a warning added) Pass all tests: Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. Testing Time: 94.14s Expected Passes : 6721 Expected Failures : 20 Unsupported Tests : 17 (which was not the case of http://llvm-reviews.chandlerc.com/D2125) Differential Revision: http://llvm-reviews.chandlerc.com/D2212 llvm-svn: 195009
* Move remaining %clang_cc1 tests out of test/DriverAlp Toker2013-11-161-0/+4
clang -cc1 skips the driver so it never made sense to include these with the Driver tests. Basic type tests and flag tests generally both go in Frontend. Now that the final -cc1 tests have been moved out of test/Driver, add a local substitution to enforce and detect future mistakes. These miscategorized tests were probably the source of confusion in r194817. llvm-svn: 194919
OpenPOWER on IntegriCloud