diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2023-03-24 09:56:59 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-24 09:56:59 -0400 |
| commit | e794de0d63e6de9be564c971fd40486ecf631293 (patch) | |
| tree | 903bd4100fd9c259d68f2893c61a36880e182f14 /tests/serialization/obfuscated-serialized-module.slang | |
| parent | 03c10833beb331e234554808c2a80d3cadecc7c0 (diff) | |
Obfuscated source map writing (#2727)
* #include an absolute path didn't work - because paths were taken to always be relative.
* WIP produce obfuscated source map and write when container is specified.
* Make the sourcemap generated name stable.
Diffstat (limited to 'tests/serialization/obfuscated-serialized-module.slang')
| -rw-r--r-- | tests/serialization/obfuscated-serialized-module.slang | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/serialization/obfuscated-serialized-module.slang b/tests/serialization/obfuscated-serialized-module.slang new file mode 100644 index 000000000..17ddfa662 --- /dev/null +++ b/tests/serialization/obfuscated-serialized-module.slang @@ -0,0 +1,15 @@ +//TEST_IGNORE_FILE: + +// obfuscated-serialized-module.slang + +struct Thing +{ + int a; + int b; +}; + +int foo(Thing thing) +{ + return (thing.a + thing.b) - thing.b; +} + |
