diff options
| author | Benjamin Gilbert <bgilbert@backtick.net> | 2025-06-23 15:24:15 -0700 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-11-18 08:32:28 -0800 |
| commit | efb9c62a7e98b03f38c767c83c48db13f5a8cab8 (patch) | |
| tree | 1b0fab2a4f1ead0162d93d5f82c06a3d1d48f6dd /test cases | |
| parent | 4b7a494f8227aea2bb8acce8ab40d7d34734971a (diff) | |
| download | meson-efb9c62a7e98b03f38c767c83c48db13f5a8cab8.tar.gz | |
rewriter: fix kwargs info for dict-valued kwargs
We can't modify dict-valued kwargs (#14739) but this lets us at least read
them.
Diffstat (limited to 'test cases')
| -rw-r--r-- | test cases/rewrite/8 kwargs dict/info.json | 14 | ||||
| -rw-r--r-- | test cases/rewrite/8 kwargs dict/meson.build | 10 |
2 files changed, 24 insertions, 0 deletions
diff --git a/test cases/rewrite/8 kwargs dict/info.json b/test cases/rewrite/8 kwargs dict/info.json new file mode 100644 index 000000000..11a9e1a6e --- /dev/null +++ b/test cases/rewrite/8 kwargs dict/info.json @@ -0,0 +1,14 @@ +[ + { + "type": "kwargs", + "function": "project", + "id": "/", + "operation": "info" + }, + { + "type": "kwargs", + "function": "dependency", + "id": "dep1", + "operation": "info" + } +] diff --git a/test cases/rewrite/8 kwargs dict/meson.build b/test cases/rewrite/8 kwargs dict/meson.build new file mode 100644 index 000000000..1c5f25b6d --- /dev/null +++ b/test cases/rewrite/8 kwargs dict/meson.build @@ -0,0 +1,10 @@ +project( + 'rewritetest', 'cpp', + version: '0.0.1', + default_options: { + 'c_std': 'c11', + 'cpp_std': 'c++17', + }, +) + +dep1 = dependency('zlib', required: false, default_options: {'foo': 'bar'}) |
