summaryrefslogtreecommitdiff
path: root/constexpr-test.cpp
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-07-30 17:01:04 +0200
committerOskar <[email protected]>2024-07-30 17:01:04 +0200
commit642720852ec17b68d8d2bbad300202604c0bb63d (patch)
tree5cdb770d6a871f90a3511bd4b885b6499cffd534 /constexpr-test.cpp
parent7aac5c6dc29079971a5c964762cdb294782b14d5 (diff)
more exercises
Diffstat (limited to 'constexpr-test.cpp')
-rw-r--r--constexpr-test.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/constexpr-test.cpp b/constexpr-test.cpp
new file mode 100644
index 0000000..ba88142
--- /dev/null
+++ b/constexpr-test.cpp
@@ -0,0 +1,22 @@
+#include <iostream>
+#include "sales_item.hpp"
+
+/*
+ *
+ * A little test
+ *
+ *
+ */
+
+constexpr int get_number() {
+
+ return 999;
+}
+
+int main () {
+
+ constexpr int i = get_number();
+ std::cout << i << std::endl;
+
+ return 0;
+}