diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2018-02-14 02:07:53 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2018-02-14 02:07:53 +0000 |
| commit | f1f20e6802b286e44631c814181e27cf8a5bc947 (patch) | |
| tree | feab1a4664d4b580da909a737e8c8d923a249af3 /clang/test/SemaTemplate/sizeof-pack.cpp | |
| parent | 1d76120d9ad078c13453433621fa55f8983acd68 (diff) | |
| download | bcm5719-llvm-f1f20e6802b286e44631c814181e27cf8a5bc947.tar.gz bcm5719-llvm-f1f20e6802b286e44631c814181e27cf8a5bc947.zip | |
Fix a couple of places where we assumed that non-type template parameters are always rvalues.
llvm-svn: 325095
Diffstat (limited to 'clang/test/SemaTemplate/sizeof-pack.cpp')
| -rw-r--r-- | clang/test/SemaTemplate/sizeof-pack.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/sizeof-pack.cpp b/clang/test/SemaTemplate/sizeof-pack.cpp new file mode 100644 index 00000000000..4b0c883a24a --- /dev/null +++ b/clang/test/SemaTemplate/sizeof-pack.cpp @@ -0,0 +1,7 @@ +// RUN: %clang_cc1 -std=c++11 -verify %s +// expected-no-diagnostics + +template<int &...Ns> int f() { + return sizeof...(Ns); +} +template int f<>(); |

