Home | History | Annotate | Download | only in CodeGenCXX
      1 // RUN: %clang_cc1 -std=c++11 -emit-llvm -o - %s
      2 
      3 // PR9923
      4 enum class Color { red, blue, green };
      5 
      6 void f(Color);
      7 void g() {
      8   f(Color::red);
      9 }
     10 
     11 // See that struct is handled equally.
     12 enum struct Colour { grey };
     13 
     14 void h(Colour);
     15 void i() {
     16   h(Colour::grey);
     17 }
     18