Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
7651e53997e20f1e627ffce25ce613f79c48e3e3
/
.
/
test
/
SemaCXX
/
constexpr-factorial.cpp
blob: b6cdde59d3fa2638491443854c315d2e20cdde0a [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -std=c++11 -fsyntax-only %s
constexpr
unsigned
oddfac
(
unsigned
n
)
{
return
n
==
1
?
1
:
n
*
oddfac
(
n
-
2
);
}
constexpr
unsigned
k
=
oddfac
(
123
);
using
A
=
int
[
k
%
256
];
using
A
=
int
[
43
];