aboutsummaryrefslogtreecommitdiff
path: root/test/compilers/argument-parsers-tests.js
diff options
context:
space:
mode:
authorPartouf <partouf@gmail.com>2019-01-12 22:10:00 +0100
committerPartouf <partouf@gmail.com>2019-01-12 22:10:00 +0100
commit16bae63b33e26401521cc39f26771ba37600a672 (patch)
tree29e27d7ceaaf7b53b319d9b3a988db6d26f85d74 /test/compilers/argument-parsers-tests.js
parent064ded5f5662006861254f65d328fb8a01f09d6a (diff)
downloadcompiler-explorer-16bae63b33e26401521cc39f26771ba37600a672.tar.gz
compiler-explorer-16bae63b33e26401521cc39f26771ba37600a672.zip
bugfix arguments with assignment
Diffstat (limited to 'test/compilers/argument-parsers-tests.js')
-rw-r--r--test/compilers/argument-parsers-tests.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/compilers/argument-parsers-tests.js b/test/compilers/argument-parsers-tests.js
index 909a4534d..1a971a065 100644
--- a/test/compilers/argument-parsers-tests.js
+++ b/test/compilers/argument-parsers-tests.js
@@ -156,4 +156,19 @@ describe('popular compiler arguments', () => {
});
})
});
+
+ it('should be able to exclude special params with assignments', () => {
+ return parsers.Clang.parse(compiler).then(compiler => {
+ return compiler.should.satisfy(compiler => {
+ return Promise.all([
+ compiler.possibleArguments.getPopularArguments(["-std=c++14", "-g", "--hello"]).should.deep.equal({
+ "-O<number>": {description: "optimization level", timesused: 0},
+ "-fcolor-diagnostics": {"description": "", "timesused": 0},
+ "-fsave-optimization-record": {"description": "", "timesused": 0},
+ "-x": {"description": "", "timesused": 0}
+ })
+ ]);
+ });
+ })
+ });
});