diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-04-06 22:40:38 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-04-06 22:40:38 +0000 |
commit | 31f55dced546449acde6de1fb892caa4f6fb4fd1 (patch) | |
tree | 8405327c4506ef1cacce6c021fd2d5752061f4ff /clang/test/FixIt/fixit-cxx0x.cpp | |
parent | 4460e0f805c21bc23c157dda6329aa86abf9b6eb (diff) | |
download | bcm5719-llvm-31f55dced546449acde6de1fb892caa4f6fb4fd1.tar.gz bcm5719-llvm-31f55dced546449acde6de1fb892caa4f6fb4fd1.zip |
Implement support for null non-type template arguments for non-type
template parameters of pointer, pointer-to-member, or nullptr_t
type in C++11. Fixes PR9700 / <rdar://problem/11193097>.
llvm-svn: 154219
Diffstat (limited to 'clang/test/FixIt/fixit-cxx0x.cpp')
-rw-r--r-- | clang/test/FixIt/fixit-cxx0x.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/FixIt/fixit-cxx0x.cpp b/clang/test/FixIt/fixit-cxx0x.cpp index 997d73abfb5..b6cc2c08b03 100644 --- a/clang/test/FixIt/fixit-cxx0x.cpp +++ b/clang/test/FixIt/fixit-cxx0x.cpp @@ -104,3 +104,7 @@ namespace TestMisplacedEllipsisRecovery { template<template<typename> ...Foo, // expected-error {{template template parameter requires 'class' after the parameter list}} template<template<template<typename>>>> // expected-error 3 {{template template parameter requires 'class' after the parameter list}} void func(); + +template<int *ip> struct IP { }; // expected-note{{declared here}} +IP<0> ip0; // expected-error{{null non-type template argument must be cast to template parameter type 'int *'}} + |