From f73363f1dd94996356cefbf24388f561891acf0b Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 28 Jul 2018 11:09:23 +0000 Subject: Vendor import of lldb trunk r338150: https://llvm.org/svn/llvm-project/lldb/trunk@338150 --- lit/Expr/Inputs/anonymous-struct.cpp | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 lit/Expr/Inputs/anonymous-struct.cpp (limited to 'lit/Expr/Inputs/anonymous-struct.cpp') diff --git a/lit/Expr/Inputs/anonymous-struct.cpp b/lit/Expr/Inputs/anonymous-struct.cpp deleted file mode 100644 index 5b170c5f943a..000000000000 --- a/lit/Expr/Inputs/anonymous-struct.cpp +++ /dev/null @@ -1,26 +0,0 @@ -#include - -typedef struct { - float f; - int i; -} my_untagged_struct; - -double multiply(my_untagged_struct *s) -{ - return s->f * s->i; -} - -double multiply(my_untagged_struct *s, int x) -{ - return multiply(s) * x; -} - -int main(int argc, char **argv) -{ - my_untagged_struct s = { - .f = (float)argc, - .i = argc, - }; - // lldb testsuite break - return !(multiply(&s, argc) == pow(argc, 3)); -} -- cgit v1.2.3