diff options
Diffstat (limited to 'switch-test.cpp')
-rw-r--r-- | switch-test.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/switch-test.cpp b/switch-test.cpp new file mode 100644 index 0000000..1f6171d --- /dev/null +++ b/switch-test.cpp @@ -0,0 +1,25 @@ +#include <iostream> + +/* + * + * + * + * + */ + +int main () { + + int j = 0; + constexpr int ff = 0; + constexpr int ff2 = 2; + switch(j) { + case ff: + std::cout << "!!!" << std::endl; + break; + case ff2: + + break; + } + + return 0; +} |