diff options
Diffstat (limited to 'test/Parser/objcxx0x-lambda-expressions.mm')
| -rw-r--r-- | test/Parser/objcxx0x-lambda-expressions.mm | 13 | 
1 files changed, 13 insertions, 0 deletions
| diff --git a/test/Parser/objcxx0x-lambda-expressions.mm b/test/Parser/objcxx0x-lambda-expressions.mm index 3954a807a5fb..c6ed121f8b40 100644 --- a/test/Parser/objcxx0x-lambda-expressions.mm +++ b/test/Parser/objcxx0x-lambda-expressions.mm @@ -41,3 +41,16 @@ class C {  }; +struct Func { +  template <typename F> +  Func(F&&); +}; + +int getInt(); + +void test() { +  [val = getInt()]() { }; +  Func{ +    [val = getInt()]() { } +  }; +} | 
