summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/scoped-enums.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenCXX/scoped-enums.cpp')
-rw-r--r--clang/test/CodeGenCXX/scoped-enums.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/scoped-enums.cpp b/clang/test/CodeGenCXX/scoped-enums.cpp
new file mode 100644
index 0000000..fca0509
--- /dev/null
+++ b/clang/test/CodeGenCXX/scoped-enums.cpp
@@ -0,0 +1,9 @@
+// RUN: %clang_cc1 -std=c++11 -emit-llvm -o - %s
+
+// PR9923
+enum class Color { red, blue, green };
+
+void f(Color);
+void g() {
+ f(Color::red);
+}