summaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/mingw-new-abi.cpp
blob: 2b05253b0985ab732130ce1bd62a9e1e3f169634 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clang_cc1 -emit-llvm -triple i386-pc-mingw32 %s -o - | FileCheck --check-prefix=MINGW %s
// RUN: %clang_cc1 -emit-llvm -triple i386-pc-cygwin %s -o - | FileCheck --check-prefix=CYGWIN %s

namespace test1 {
  struct foo {
    //  MINGW: declare x86_thiscallcc void @_ZN5test13foo1fEv
    //  CYGWIN: declare void @_ZN5test13foo1fEv
    void f();
  };
  void g(foo *x) {
    x->f();
  }
}