[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / Sema / overloaded-func-transparent-union.c
blobacdc5898b026f14de600d09e4d1b1967a98a0338
1 // RUN: %clang_cc1 %s -fsyntax-only -verify
2 // expected-no-diagnostics
3 // rdar:// 9129552
4 // PR9406
6 typedef struct {
7 char *str;
8 char *str2;
9 } Class;
11 typedef union {
12 Class *object;
13 } Instance __attribute__((transparent_union));
15 __attribute__((overloadable)) void Class_Init(Instance this, char *str, void *str2) {
16 this.object->str = str;
17 this.object->str2 = str2;
20 __attribute__((overloadable)) void Class_Init(Instance this, char *str) {
21 this.object->str = str;
22 this.object->str2 = str;
25 int main(void) {
26 Class obj;
27 Class_Init(&obj, "Hello ", " World");