diff options
author | Sylvestre Ledru <sylvestre@debian.org> | 2017-01-14 12:00:40 +0000 |
---|---|---|
committer | Sylvestre Ledru <sylvestre@debian.org> | 2017-01-14 12:00:40 +0000 |
commit | 1f63b7e0995d9ca94e9ab16e98568aae04eee78f (patch) | |
tree | aa9d63350c26e704ab50946ab17c343a3e80ac1d | |
parent | e86ee6b0a882f9002dabf3c148023934d4dba0b1 (diff) | |
download | bcm5719-llvm-1f63b7e0995d9ca94e9ab16e98568aae04eee78f.tar.gz bcm5719-llvm-1f63b7e0995d9ca94e9ab16e98568aae04eee78f.zip |
Update the tests to match the typo fix done in r292015
llvm-svn: 292016
-rw-r--r-- | clang/test/Sema/enable_if.c | 4 | ||||
-rw-r--r-- | clang/test/SemaCXX/enable_if.cpp | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/clang/test/Sema/enable_if.c b/clang/test/Sema/enable_if.c index a11f53eb493..9125bfaf0f1 100644 --- a/clang/test/Sema/enable_if.c +++ b/clang/test/Sema/enable_if.c @@ -139,8 +139,8 @@ void test7() { void f4(int m) __attribute__((enable_if(0, ""))); void test8() { - void (*p1)(int) = &f4; // expected-error{{cannot take address of function 'f4' becuase it has one or more non-tautological enable_if conditions}} - void (*p2)(int) = f4; // expected-error{{cannot take address of function 'f4' becuase it has one or more non-tautological enable_if conditions}} + void (*p1)(int) = &f4; // expected-error{{cannot take address of function 'f4' because it has one or more non-tautological enable_if conditions}} + void (*p2)(int) = f4; // expected-error{{cannot take address of function 'f4' because it has one or more non-tautological enable_if conditions}} } void regular_enable_if(int a) __attribute__((enable_if(a, ""))); // expected-note 3{{declared here}} diff --git a/clang/test/SemaCXX/enable_if.cpp b/clang/test/SemaCXX/enable_if.cpp index eababc34d37..01b6f8fd3ab 100644 --- a/clang/test/SemaCXX/enable_if.cpp +++ b/clang/test/SemaCXX/enable_if.cpp @@ -246,11 +246,11 @@ namespace FnPtrs { int noOvlNoCandidate(int m) __attribute__((enable_if(false, ""))); void test8() { - int (*p)(int) = noOvlNoCandidate; // expected-error{{cannot take address of function 'noOvlNoCandidate' becuase it has one or more non-tautological enable_if conditions}} - int (*p2)(int) = &noOvlNoCandidate; // expected-error{{cannot take address of function 'noOvlNoCandidate' becuase it has one or more non-tautological enable_if conditions}} + int (*p)(int) = noOvlNoCandidate; // expected-error{{cannot take address of function 'noOvlNoCandidate' because it has one or more non-tautological enable_if conditions}} + int (*p2)(int) = &noOvlNoCandidate; // expected-error{{cannot take address of function 'noOvlNoCandidate' because it has one or more non-tautological enable_if conditions}} int (*a)(int); - a = noOvlNoCandidate; // expected-error{{cannot take address of function 'noOvlNoCandidate' becuase it has one or more non-tautological enable_if conditions}} - a = &noOvlNoCandidate; // expected-error{{cannot take address of function 'noOvlNoCandidate' becuase it has one or more non-tautological enable_if conditions}} + a = noOvlNoCandidate; // expected-error{{cannot take address of function 'noOvlNoCandidate' because it has one or more non-tautological enable_if conditions}} + a = &noOvlNoCandidate; // expected-error{{cannot take address of function 'noOvlNoCandidate' because it has one or more non-tautological enable_if conditions}} } } |