mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-25 06:18:56 -04:00

reinstates r144273; a combination of r144333's fix for NoOp rvalue-to-lvalue casts and some corresponding changes here resolve the regression which that caused. This patch also adds support for some additional forms of member function call, along with additional testing. llvm-svn: 144369
9 lines
241 B
C++
9 lines
241 B
C++
// RUN: %clang_cc1 -std=c++11 -fsyntax-only %s
|
|
|
|
constexpr unsigned long long A(unsigned long long m, unsigned long long n) {
|
|
return m == 0 ? n + 1 : n == 0 ? A(m-1, 1) : A(m - 1, A(m, n - 1));
|
|
}
|
|
|
|
using X = int[A(3,4)];
|
|
using X = int[125];
|