Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CXX / over / over.built / p26.cpp
blob09e550ddc0ec3ea91f4a7e927f3f277c772f54c3
1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
2 // expected-no-diagnostics
4 enum class Color { Red, Green, Blue };
6 struct ConvertsToColorA {
7 operator Color();
8 };
10 struct ConvertsToColorB {
11 operator Color();
14 Color foo(bool cond, ConvertsToColorA ca, ConvertsToColorB cb) {
15 return cond? ca : cb;