blob: c20faaaf2e96d02f718e89af042753430c7fb4ba [file] [log] [blame]
// 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);
}
// See that struct is handled equally.
enum struct Colour { grey };
void h(Colour);
void i() {
h(Colour::grey);
}