diff options
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
-rw-r--r-- | llvm/unittests/Support/CommandLineTest.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/unittests/Support/CommandLineTest.cpp b/llvm/unittests/Support/CommandLineTest.cpp index 702aa52..a435200 100644 --- a/llvm/unittests/Support/CommandLineTest.cpp +++ b/llvm/unittests/Support/CommandLineTest.cpp @@ -1784,4 +1784,12 @@ TEST(CommandLineTest, Callback) { cl::ResetAllOptionOccurrences(); } + +enum Enum { Val1, Val2 }; +static cl::bits<Enum> ExampleBits( + cl::desc("An example cl::bits to ensure it compiles"), + cl::values( + clEnumValN(Val1, "bits-val1", "The Val1 value"), + clEnumValN(Val1, "bits-val2", "The Val2 value"))); + } // anonymous namespace |