summaryrefslogtreecommitdiff
path: root/test/Sema/empty1.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/empty1.c')
-rw-r--r--test/Sema/empty1.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/Sema/empty1.c b/test/Sema/empty1.c
index de922f775ef7..9a2fb678de66 100644
--- a/test/Sema/empty1.c
+++ b/test/Sema/empty1.c
@@ -1,4 +1,6 @@
-// RUN: %clang_cc1 %s -fsyntax-only -verify -Wc++-compat
+// RUN: %clang_cc1 %s -triple %itanium_abi_triple -fsyntax-only -verify -Wc++-compat
+
+// Note: Empty C structs are 4 bytes in the Microsoft ABI.
struct emp_1 { // expected-warning {{empty struct has size 0 in C, size 1 in C++}}
};