Home | History | Annotate | Download | only in over.built
      1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
      2 
      3 enum class Color { Red, Green, Blue };
      4 
      5 struct ConvertsToColorA {
      6   operator Color();
      7 };
      8 
      9 struct ConvertsToColorB {
     10   operator Color();
     11 };
     12 
     13 Color foo(bool cond, ConvertsToColorA ca, ConvertsToColorB cb) {
     14   return cond? ca : cb;
     15 }
     16