[AMDGPU] Add True16 register classes.
[llvm-project.git] / lldb / test / API / lang / cpp / function-template-parameter-pack / main.cpp
blob407ba68be8a2cdd5b9882b0a154f98a8ef215af1
1 template <class T> int staticSizeof() {
2 return sizeof(T);
5 template <class T1, class T2, class... Ts> int staticSizeof() {
6 return staticSizeof<T2, Ts...>() + sizeof(T1);
9 int main (int argc, char const *argv[])
11 int sz = staticSizeof<long, int, char>();
12 return staticSizeof<long, int, char>() != sz; //% self.expect("expression -- sz == staticSizeof<long, int, char>()", "staticSizeof<long, int, char> worked", substrs = ["true"])
13 //% self.expect("expression -- sz == staticSizeof<long, int>() + sizeof(char)", "staticSizeof<long, int> worked", substrs = ["true"])
14 //% self.expect("expression -- sz == staticSizeof<long>() + sizeof(int) + sizeof(char)", "staticSizeof<long> worked", substrs = ["true"])