diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-10-23 21:17:37 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-10-24 17:19:36 +0300 |
commit | c4a9f59dc415f40513a281210d9598911b35b723 (patch) | |
tree | 56d3927b323e2d5494fe0c8a6c2f46fa838081e0 /test cases/unit/45 vscpp17 | |
parent | 61348da069bd3afe28a9de03e7792e20a9cb2eac (diff) | |
download | meson-c4a9f59dc415f40513a281210d9598911b35b723.zip meson-c4a9f59dc415f40513a281210d9598911b35b723.tar.gz meson-c4a9f59dc415f40513a281210d9598911b35b723.tar.bz2 |
Move VS C++17 test to a unit test since it requires env setup.
Diffstat (limited to 'test cases/unit/45 vscpp17')
-rw-r--r-- | test cases/unit/45 vscpp17/main.cpp | 7 | ||||
-rw-r--r-- | test cases/unit/45 vscpp17/meson.build | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/test cases/unit/45 vscpp17/main.cpp b/test cases/unit/45 vscpp17/main.cpp new file mode 100644 index 0000000..36e4156 --- /dev/null +++ b/test cases/unit/45 vscpp17/main.cpp @@ -0,0 +1,7 @@ +[[nodiscard]] int foo() { + return 0; +} + +int main() { + return foo(); +} diff --git a/test cases/unit/45 vscpp17/meson.build b/test cases/unit/45 vscpp17/meson.build new file mode 100644 index 0000000..afe740b --- /dev/null +++ b/test cases/unit/45 vscpp17/meson.build @@ -0,0 +1,4 @@ +project('msvc_cpp17', 'cpp', default_options: ['cpp_std=c++17']) + +exe = executable('msvc_cpp17', 'main.cpp') +test('msvc_cpp17', exe) |