mtklein | 86e01df | 2014-09-12 17:02:51 -0700 | [diff] [blame^] | 1 | /* |
2 | * Copyright 2014 Google Inc. | ||||
3 | * | ||||
4 | * Use of this source code is governed by a BSD-style license that can be | ||||
5 | * found in the LICENSE file. | ||||
6 | */ | ||||
7 | |||||
8 | #include "Test.h" | ||||
9 | |||||
10 | DEF_TEST(Cpp11, r) { | ||||
11 | auto square = [](int x){ return x*x; }; | ||||
12 | |||||
13 | REPORTER_ASSERT(r, square(4) == 16); | ||||
14 | } |