diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-02-16 15:13:57 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-02-17 11:23:25 +0100 |
commit | 766a9002a3d5fb6701de2d84ce689379811eabff (patch) | |
tree | 3a94ffcbbc033f140cb1ec44cb70ad6e1739faa2 /gcc/rust/rust-lang.cc | |
parent | d81ba63f4829c12b89e87564c398e95879c89db1 (diff) | |
download | gcc-766a9002a3d5fb6701de2d84ce689379811eabff.zip gcc-766a9002a3d5fb6701de2d84ce689379811eabff.tar.gz gcc-766a9002a3d5fb6701de2d84ce689379811eabff.tar.bz2 |
frust-cfg: Only allow double quoted values
This commit separates the `handle_cfg_option()` function in two,
separating the parsing logic from the session logic. The parsing logic
is able to be unit tested, and now only allows quoted values.
Diffstat (limited to 'gcc/rust/rust-lang.cc')
-rw-r--r-- | gcc/rust/rust-lang.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/rust-lang.cc b/gcc/rust/rust-lang.cc index fbab9b1..5ecd79b 100644 --- a/gcc/rust/rust-lang.cc +++ b/gcc/rust/rust-lang.cc @@ -33,6 +33,7 @@ #include "langhooks.h" #include "langhooks-def.h" #include "selftest.h" +#include "rust-cfg-parser.h" #include <mpfr.h> // note: header files must be in this order or else forward declarations don't @@ -453,6 +454,7 @@ run_rust_tests () { // Call tests for the rust frontend here simple_assert (); + rust_cfg_parser_test (); } } // namespace selftest |