diff options
Diffstat (limited to 'lit/Expr/Inputs/anonymous-struct.cpp')
| -rw-r--r-- | lit/Expr/Inputs/anonymous-struct.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
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 <tgmath.h> - -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)); -} |
