// RUN: %clang_cc1 -fsyntax-only -verify -Wold-style-cast %s

void test1() {
  long x = (long)12; // expected-warning {{use of old-style cast}}
  (long)x; // expected-warning {{use of old-style cast}} expected-warning {{expression result unused}}
  (void**)x; // expected-warning {{use of old-style cast}} expected-warning {{expression result unused}}
  long y = static_cast<long>(12);
  (void)y;
  typedef void VOID;
  (VOID)y;
}

// RUN: %clang_cc1 -triple x86_64-apple-darwin -fsyntax-only -verify -Wold-style-cast %s

void test1() {
  long x = (long)12; // expected-warning {{use of old-style cast}}
  (long)x; // expected-warning {{use of old-style cast}} expected-warning {{expression result unused}}
  (void**)x; // expected-warning {{use of old-style cast}} expected-warning {{expression result unused}}
  long y = static_cast<long>(12);
  (void)y;
  typedef void VOID;
  (VOID)y;
}

Add a triple to fix this test on Windows
Add a triple to fix this test on Windows

The warning from cmake-clang-x64-msc16-R was:

  test\SemaCXX\old-style-cast.cpp Line 6: cast to 'void **' from smaller integer type 'long'

git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@195813 91177308-0d34-0410-b5e6-96231b3b80d8
