summaryrefslogtreecommitdiff
path: root/test cases/unit/45 vscpp17/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/unit/45 vscpp17/main.cpp')
-rw-r--r--test cases/unit/45 vscpp17/main.cpp7
1 files changed, 7 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 000000000..36e4156e4
--- /dev/null
+++ b/test cases/unit/45 vscpp17/main.cpp
@@ -0,0 +1,7 @@
+[[nodiscard]] int foo() {
+ return 0;
+}
+
+int main() {
+ return foo();
+}