diff options
author | Eric Christopher <echristo@apple.com> | 2010-04-17 02:26:23 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-04-17 02:26:23 +0000 |
commit | 8d0c621ca600c78454da6854e78d1b60f74a0bfc (patch) | |
tree | 8eb024cea510c4bd51b58a64ab91120b0cec18d9 /clang/test/Sema/builtin-prefetch.c | |
parent | 4e5eb5ae1bb60d411454a17395f98ff6082db666 (diff) | |
download | bcm5719-llvm-8d0c621ca600c78454da6854e78d1b60f74a0bfc.tar.gz bcm5719-llvm-8d0c621ca600c78454da6854e78d1b60f74a0bfc.zip |
Consolidate most of the integer constant expression builtin requirement
checking into a single function and use that throughout. Remove some
now unnecessary diagnostics and update tests with now more accurate
diagnostics.
llvm-svn: 101610
Diffstat (limited to 'clang/test/Sema/builtin-prefetch.c')
-rw-r--r-- | clang/test/Sema/builtin-prefetch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Sema/builtin-prefetch.c b/clang/test/Sema/builtin-prefetch.c index 4f09da6c28c..424d47e903c 100644 --- a/clang/test/Sema/builtin-prefetch.c +++ b/clang/test/Sema/builtin-prefetch.c @@ -6,8 +6,8 @@ void foo() { __builtin_prefetch(&a, 1); __builtin_prefetch(&a, 1, 2); __builtin_prefetch(&a, 1, 9, 3); // expected-error{{too many arguments to function}} - __builtin_prefetch(&a, "hello", 2); // expected-error{{argument to __builtin_prefetch must be of integer type}} - __builtin_prefetch(&a, a, 2); // expected-error{{argument to __builtin_prefetch must be a constant integer}} + __builtin_prefetch(&a, "hello", 2); // expected-error{{argument 1 to '__builtin_prefetch' must be a constant integer}} + __builtin_prefetch(&a, a, 2); // expected-error{{argument 1 to '__builtin_prefetch' must be a constant integer}} __builtin_prefetch(&a, 2); // expected-error{{argument should be a value from 0 to 1}} __builtin_prefetch(&a, 0, 4); // expected-error{{argument should be a value from 0 to 3}} __builtin_prefetch(&a, -1, 4); // expected-error{{argument should be a value from 0 to 1}} |