Fangrui Song
83ea47acd7
[test] Make tests pass regardless of gnu++14/gnu++17 default
GCC from 11 onwards defaults to -std=gnu++17 for C++ source files. We want to do the same
(https://discourse.llvm.org/t/c-objc-switch-to-gnu-17-as-the-default-dialect/64360).
Split RUN lines, adjust `-verify`, or add `__cplusplus < 201703L` or `-Wno-dynamic-exception-spec`,
so that tests will pass regardless of gnu++14/gnu++17 default.
We have a desire to mark a test compatible with multiple language standards.
There are ongoing discussions how to add markers in the long term:
* https://discourse.llvm.org/t/iterating-lit-run-lines/62596
* https://discourse.llvm.org/t/lit-run-a-run-line-multiple-times-with-different-replacements/64932
As a workaround in the short term, add lit substitutions `%std_cxx98-`,
`%std_cxx11-14`, etc. They can be used for tests which work across multiple
language standards. If a range has `n` standards, run lit multiple times, with
`LIT_CLANG_STD_GROUP=0`, `LIT_CLANG_STD_GROUP=1`, etc to cover all `n` standards.
Reviewed By: #clang-language-wg, aaron.ballman
Differential Revision: https://reviews.llvm.org/D131464
2022-09-04 05:29:32 +00:00
..
2022-02-10 16:06:03 -05:00
2020-06-29 16:48:53 +00:00
2021-01-13 10:53:24 -05:00
2022-04-07 12:09:47 +02:00
2022-02-10 16:06:03 -05:00
2022-02-10 16:06:03 -05:00
2022-02-10 16:06:03 -05:00
2022-04-07 12:09:47 +02:00
2022-03-16 08:46:52 -07:00
2020-06-11 13:37:01 -04:00
2022-04-07 12:09:47 +02:00
2022-02-10 16:06:03 -05:00
2022-02-17 13:54:09 -05:00
2020-12-30 20:52:01 -08:00
2022-04-20 11:30:12 -04:00
2022-02-17 13:54:09 -05:00
2020-05-07 10:11:06 -04:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-02-10 16:06:03 -05:00
2020-04-27 21:26:13 +02:00
2020-07-22 10:21:23 +02:00
2021-11-04 11:53:47 +08:00
2020-06-21 17:05:52 +02:00
2020-06-21 17:05:52 +02:00
2020-06-21 17:05:52 +02:00
2020-06-21 17:05:52 +02:00
2020-06-21 17:05:52 +02:00
2020-06-21 17:05:52 +02:00
2020-07-31 17:19:44 -07:00
2020-06-21 17:05:52 +02:00
2020-06-21 17:05:52 +02:00
2020-09-05 14:26:43 +02:00
2020-06-21 17:05:52 +02:00
2020-06-21 17:05:52 +02:00
2019-10-19 00:04:43 +00:00
2020-06-21 17:05:52 +02:00
2020-07-30 09:25:15 +02:00
2020-07-31 17:19:44 -07:00
2020-06-22 20:19:20 -07:00
2020-06-21 17:05:52 +02:00
2020-06-21 17:05:52 +02:00
2020-06-21 17:05:52 +02:00
2020-06-21 17:05:52 +02:00
2020-06-21 17:05:52 +02:00
2020-06-21 17:05:52 +02:00
2019-05-04 10:49:46 +00:00
2021-11-24 14:03:49 -05:00
2020-06-21 17:05:52 +02:00
2022-01-17 11:33:11 +01:00
2020-12-04 09:02:50 +01:00
2020-10-21 13:21:41 -07:00
2022-02-15 17:56:45 -08:00
2022-07-27 11:10:54 +02:00
2020-06-21 17:05:52 +02:00
2020-04-05 23:32:03 -04:00
2020-10-16 14:34:35 -07:00
2020-06-21 17:05:52 +02:00
2021-09-28 10:00:15 -07:00
2020-06-21 17:05:52 +02:00
2020-06-21 17:05:52 +02:00
2022-09-04 05:29:32 +00:00
2020-08-26 19:29:30 +02:00
2020-08-26 19:29:30 +02:00
2020-06-21 17:05:52 +02:00
2020-06-21 17:05:52 +02:00
2020-04-16 12:35:45 +02:00
2021-01-18 19:19:57 +01:00
2022-07-25 07:22:54 -04:00
2022-08-11 08:44:38 +02:00
2020-12-09 12:22:35 -08:00
2020-06-21 17:05:52 +02:00
2020-07-31 17:19:44 -07:00
2020-07-31 17:19:44 -07:00
2022-02-10 16:06:03 -05:00
2019-10-21 16:44:37 +00:00
2021-11-24 13:22:09 -05:00
2020-12-09 12:22:35 -08:00
2022-05-04 08:35:47 -04:00
2020-06-21 19:00:42 +02:00
2020-06-12 16:09:38 +02:00
2022-02-12 07:25:06 -05:00
2020-08-16 15:44:51 -07:00
2022-02-12 07:25:06 -05:00
2022-02-12 07:25:06 -05:00
2022-04-07 12:09:47 +02:00
2022-02-12 07:25:06 -05:00
2022-02-12 07:25:06 -05:00
2022-02-12 07:25:06 -05:00
2020-12-30 20:52:01 -08:00
2022-02-12 07:25:06 -05:00
2022-02-12 07:25:06 -05:00
2020-04-14 13:20:49 -05:00
2021-05-16 10:42:52 -07:00
2022-02-12 07:25:06 -05:00
2020-06-21 17:05:52 +02:00
2020-06-21 17:05:52 +02:00
2021-08-24 17:03:06 -07:00
2021-09-16 14:04:42 -04:00
2020-06-21 17:05:52 +02:00
2019-08-09 17:13:56 +00:00
2020-06-21 17:05:52 +02:00
2020-06-21 17:05:52 +02:00
2020-06-21 17:05:52 +02:00
2019-09-10 20:15:45 +00:00
2020-06-21 17:05:52 +02:00
2020-01-14 22:19:30 -08:00
2022-02-12 07:25:06 -05:00
2022-01-16 18:54:17 +09:00
2022-04-07 12:09:47 +02:00
2019-09-07 00:34:43 +00:00
2022-02-12 07:25:06 -05:00
2022-02-12 07:25:06 -05:00
2021-09-16 14:04:42 -04:00
2022-07-22 15:24:54 -04:00
2022-02-12 07:25:06 -05:00
2022-02-12 07:25:06 -05:00
2021-09-16 14:04:42 -04:00
2022-02-12 07:25:06 -05:00
2022-02-12 07:25:06 -05:00
2022-04-07 12:09:47 +02:00
2022-08-10 22:47:27 +03:00
2020-06-21 17:05:52 +02:00
2020-06-21 17:05:52 +02:00
2022-08-05 15:40:33 -07:00
2021-10-19 15:50:08 -07:00
2021-09-16 14:04:42 -04:00
2020-06-21 17:05:52 +02:00
2022-04-07 12:09:47 +02:00
2020-06-21 17:05:52 +02:00
2022-02-12 07:25:06 -05:00
2020-10-30 07:30:06 -07:00
2022-02-12 07:25:06 -05:00
2022-04-07 12:09:47 +02:00
2022-03-24 20:17:49 -04:00
2020-08-20 14:19:52 +02:00
2022-02-12 07:25:06 -05:00
2020-06-21 17:05:52 +02:00
2022-08-16 09:27:18 -04:00
2020-06-21 17:05:52 +02:00
2021-02-22 14:16:43 -08:00
2022-02-12 07:25:06 -05:00
2022-02-12 07:25:06 -05:00
2020-03-09 19:57:03 +00:00
2019-08-26 19:44:07 +00:00
2021-09-20 15:20:15 +02:00
2020-06-21 17:05:52 +02:00
2022-02-24 15:30:30 -05:00
2022-02-12 07:25:06 -05:00
2022-02-12 07:25:06 -05:00
2022-01-16 18:54:17 +09:00
2019-10-15 14:23:55 +00:00
2021-08-24 17:03:06 -07:00