diff options
author | 2014-09-12 17:02:51 -0700 | |
---|---|---|
committer | 2014-09-12 17:02:52 -0700 | |
commit | 86e01df8d1d8848044c3fcc31c1a2008b70fe08c (patch) | |
tree | 314ae8cd63a297ca701d2b0567fb5f7e99134b98 /tests/Cpp11Test.cpp | |
parent | c34b0d4e9ad5806c1f882a1f85191f2ea8ddcdba (diff) |
Add a test that uses C++11 features as a compiler canary.
BUG=skia:
R=bungeman@google.com, mtklein@google.com
Author: mtklein@chromium.org
Review URL: https://codereview.chromium.org/568913002
Diffstat (limited to 'tests/Cpp11Test.cpp')
-rw-r--r-- | tests/Cpp11Test.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/Cpp11Test.cpp b/tests/Cpp11Test.cpp new file mode 100644 index 0000000000..627c4d4f69 --- /dev/null +++ b/tests/Cpp11Test.cpp @@ -0,0 +1,14 @@ +/* + * Copyright 2014 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#include "Test.h" + +DEF_TEST(Cpp11, r) { + auto square = [](int x){ return x*x; }; + + REPORTER_ASSERT(r, square(4) == 16); +} |