Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(214)

Unified Diff: test/win/compiler-flags/compile-as-winrt.cc

Issue 1946883002: Enabling /ZW (CompileAsWinRT) option for msvs (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Fix line endings Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/lib/TestGyp.py ('k') | test/win/compiler-flags/compile-as-winrt.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/win/compiler-flags/compile-as-winrt.cc
diff --git a/test/win/compiler-flags/compile-as-winrt.cc b/test/win/compiler-flags/compile-as-winrt.cc
new file mode 100644
index 0000000000000000000000000000000000000000..74b098693f354706965ede07267e57774b75a6f9
--- /dev/null
+++ b/test/win/compiler-flags/compile-as-winrt.cc
@@ -0,0 +1,12 @@
+// Copyright (c) 2016 Google Inc. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+using namespace Platform;
+
+int main() {
+ wchar_t msg[] = L"Test";
+ String^ str1 = ref new String(msg);
+ auto str2 = String::Concat(str1, " Concat");
+ return 0;
+}
« no previous file with comments | « test/lib/TestGyp.py ('k') | test/win/compiler-flags/compile-as-winrt.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698